Skip to main content

Text Class

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

No description available.

public class Text : UIElement

Constructors

Text()

public Text() : this(null, null)

No description available.

Text(string content)

public Text(string content) : this(null, content)

No description available.

ParameterTypeDescription
contentstring

Text(System.Drawing.Font font, string content)

public Text(System.Drawing.Font font, string content)

No description available.

ParameterTypeDescription
fontSystem.Drawing.Font
contentstring

Properties

Font

public System.Drawing.Font Font { get; set; }

Font used by the text. (inherited)

ForeColor

public Color ForeColor { get; set; }

No description available.

TextContent

public string TextContent { get; set; }

No description available.

Trimming

public TextTrimming Trimming { get; set; }

No description available.

TextAlignment

public TextAlignment TextAlignment { get; set; }

No description available.

LineHeight

public int LineHeight { get; }

No description available.

TextWrap

public bool TextWrap { get; set; }

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

OnRender(DrawingContext dc)

public override void OnRender(DrawingContext dc)

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

ParameterTypeDescription
dcDrawingContext

Fields

_text

protected string _text

No description available.