HierarchyEntity2D RelativePosition Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Vector2D RelativePosition { get; set; }

Property Value

Type: Vector2D

Implements

HierarchyObject2D RelativePosition
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.ButtonTests
Examples

1 unit tests call DeltaEngine.Rendering2D.HierarchyEntity2D.RelativePosition
[Test, ApproveFirstFrameScreenshot]
public void RenderButtonWithRelativePosition()
{
    button.Add(new List<FontText>
    {
        new FontText(Font.Default, "", new Rectangle(0.4f, 0.7f, 0.2f, 0.1f))
    });
    button.Start<UpdateTextWithRelativePosition>();
}
See Also