Add Method (String, Font, Color)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a TextRun object (string) to the current text run collection.
Namespace: Microsoft.SPOT.Presentation.Controls
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Function Add ( _
text As String, _
font As Font, _
foreColor As Color _
) As Integer
public int Add(
string text,
Font font,
Color foreColor
)
public:
int Add(
String^ text,
Font^ font,
Color foreColor
)
member Add :
text:string *
font:Font *
foreColor:Color -> int
public function Add(
text : String,
font : Font,
foreColor : Color
) : int
Parameters
- text
Type: System. . :: . .String
The string to be added to the text run collection.
- font
Type: Microsoft.SPOT. . :: . .Font
The font to be used for the string.
- foreColor
Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
The foreground color to be used for the string.
Return Value
Type: System. . :: . .Int32
The index number of the specified string in the text run collection.
Remarks
This method creates a TextRun object, stores the specified string in it, and then saves the object in the current text run collection.
.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.