AnchoringTests LeftRightMargin 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 LeftRightMargin()
Examples

[Test, CloseAfterFirstFrame]
public void LeftRightMargin()
{
    anchoring.LeftMargin = new Margin(Edge.Left, 0.05f);
    anchoring.RightMargin = new Margin(Edge.Right, 0.15f);
    AssertNearlyEqual(new Rectangle(0.05f, -0.0333f, 0.8f, 1.0666f),
        anchoring.CalculateDrawArea(control));
}
See Also