TextRun Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the TextRun class (a text run).
Namespace: Microsoft.SPOT.Presentation.Controls
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Sub New ( _
text As String, _
font As Font, _
foreColor As Color _
)
public TextRun(
string text,
Font font,
Color foreColor
)
public:
TextRun(
String^ text,
Font^ font,
Color foreColor
)
new :
text:string *
font:Font *
foreColor:Color -> TextRun
public function TextRun(
text : String,
font : Font,
foreColor : Color
)
Parameters
- text
Type: System. . :: . .String
The text in the text run.
- font
Type: Microsoft.SPOT. . :: . .Font
The font for the text in the text run.
- foreColor
Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
The foreground color for the text in the text run.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.