Class TextRun
- Namespace
- nanoFramework.Presentation.Controls
- Assembly
- nanoFramework.Graphics.dll
Represents a text run with a specific font and color.
public class TextRun
- Inheritance
-
TextRun
- Inherited Members
- Extension Methods
Constructors
TextRun(string, Font, Color)
Initializes a new instance of the TextRun class with the specified text, font, and foreground color.
public TextRun(string text, Font font, Color foreColor)
Parameters
text
stringThe text of the text run.
font
FontThe font of the text run.
foreColor
ColorThe foreground color of the text run.
Fields
Font
Gets the font of the current text run.
public readonly Font Font
Field Value
ForeColor
Gets the foreground color of the current text run.
public readonly Color ForeColor
Field Value
Text
Gets the text of the current text run.
public readonly string Text
Field Value
_height
Gets or sets the height.
protected int _height
Field Value
_width
Gets or sets the width.
protected int _width
Field Value
Properties
EndOfLine
Gets a text run that represents the end of a line.
public static TextRun EndOfLine { get; }
Property Value
Methods
GetSize(out int, out int)
Gets the size of the current text run.
public void GetSize(out int width, out int height)