Skip to main content

Canvas Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

No description available.

public class Canvas : Panel

Constructors

Canvas()

public Canvas()

No description available.

Methods

GetBottom(UIElement e)

public static int GetBottom(UIElement e)

No description available.

ParameterTypeDescription
eUIElement

Returns int

SetBottom(UIElement e, int bottom)

public static void SetBottom(UIElement e, int bottom)

No description available.

ParameterTypeDescription
eUIElement
bottomint

GetLeft(UIElement e)

public static int GetLeft(UIElement e)

No description available.

ParameterTypeDescription
eUIElement

Returns int

SetLeft(UIElement e, int left)

public static void SetLeft(UIElement e, int left)

No description available.

ParameterTypeDescription
eUIElement
leftint

GetRight(UIElement e)

public static int GetRight(UIElement e)

No description available.

ParameterTypeDescription
eUIElement

Returns int

SetRight(UIElement e, int right)

public static void SetRight(UIElement e, int right)

No description available.

ParameterTypeDescription
eUIElement
rightint

GetTop(UIElement e)

public static int GetTop(UIElement e)

No description available.

ParameterTypeDescription
eUIElement

Returns int

SetTop(UIElement e, int top)

public static void SetTop(UIElement e, int top)

No description available.

ParameterTypeDescription
eUIElement
topint

ArrangeOverride(int arrangeWidth, int arrangeHeight)

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

ArrangeOverride allows for the customization of the positioning of children. (inherited)

ParameterTypeDescription
arrangeWidthint
arrangeHeightint

MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Measurement override. Implement your size-to-content logic here. (inherited)

ParameterTypeDescription
availableWidthintAvailable size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling...
availableHeightint
desiredWidthout int
desiredHeightout int