Share via


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

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

See Also

Reference

TextRunCollection Class

Add Overload

Microsoft.SPOT.Presentation.Controls Namespace