Class CanvasPanel

Namespace
Forma
Assembly
Forma.dll

Positions children by attached edge offsets or normalized anchors without imposing sequential layout.

public sealed class CanvasPanel : Container, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
CanvasPanel
Implements
Inherited Members

Constructors

CanvasPanel()

public CanvasPanel()

Methods

ArrangeChildren()

protected override void ArrangeChildren()

GetAnchor(Control)

public static Vector2 GetAnchor(Control child)

Parameters

child Control

Returns

Vector2

GetBottom(Control)

public static float GetBottom(Control child)

Parameters

child Control

Returns

float

GetLeft(Control)

public static float GetLeft(Control child)

Parameters

child Control

Returns

float

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2

GetRight(Control)

public static float GetRight(Control child)

Parameters

child Control

Returns

float

GetTop(Control)

public static float GetTop(Control child)

Parameters

child Control

Returns

float

GetZIndex(Control)

public static int GetZIndex(Control child)

Parameters

child Control

Returns

int

SetAnchor(Control, Vector2)

public static void SetAnchor(Control child, Vector2 value)

Parameters

child Control
value Vector2

SetBottom(Control, float)

public static void SetBottom(Control child, float value)

Parameters

child Control
value float

SetLeft(Control, float)

public static void SetLeft(Control child, float value)

Parameters

child Control
value float

SetRight(Control, float)

public static void SetRight(Control child, float value)

Parameters

child Control
value float

SetTop(Control, float)

public static void SetTop(Control child, float value)

Parameters

child Control
value float

SetZIndex(Control, int)

public static void SetZIndex(Control child, int value)

Parameters

child Control
value int