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.
| Parameter | Type | Description |
|---|---|---|
content | string |
Text(System.Drawing.Font font, string content)
public Text(System.Drawing.Font font, string content)
No description available.
| Parameter | Type | Description |
|---|---|---|
font | System.Drawing.Font | |
content | string |
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)
| Parameter | Type | Description |
|---|---|---|
availableWidth | int | Available 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... |
availableHeight | int | |
desiredWidth | out int | |
desiredHeight | out int |
OnRender(DrawingContext dc)
public override void OnRender(DrawingContext dc)
Renders the DataGrid onto it's parent container's graphics. (inherited)
| Parameter | Type | Description |
|---|---|---|
dc | DrawingContext |
Fields
_text
protected string _text
No description available.