Skip to main content

TextFlow Class

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

No description available.

public class TextFlow : UIElement

Constructors

TextFlow()

public TextFlow()

No description available.

Properties

ScrollingStyle

public ScrollingStyle ScrollingStyle { get; set; }

The scrolling style. (inherited)

TextAlignment

public TextAlignment TextAlignment { get; set; }

No description available.

TopLine

public int TopLine { get; set; }

No description available.

LineCount

public int LineCount { get; }

No description available.

Methods

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

OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

protected override void OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

An event reporting a button was pressed. (inherited)

ParameterTypeDescription
eGHIElectronics.TinyCLR.UI.Input.ButtonEventArgs

OnRender(Media.DrawingContext dc)

public override void OnRender(Media.DrawingContext dc)

Renders the DataGrid onto it's parent container's graphics. (inherited)

ParameterTypeDescription
dcMedia.DrawingContext

Fields

TextRuns

public TextRunCollection TextRuns

No description available.