AnchoringTests TopBottomMargin Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void TopBottomMargin()
Examples

[Test, CloseAfterFirstFrame]
public void TopBottomMargin()
{
    anchoring.TopMargin = new Margin(Edge.Top, 0.05f);
    anchoring.BottomMargin = new Margin(Edge.Bottom, 0.15f);
    AssertNearlyEqual(new Rectangle(0.364f, 0.2688f, 0.2719f, 0.3625f),
        anchoring.CalculateDrawArea(control));
}
See Also