TextRun Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides members you can use to create and work with a text run, which is a string of characters that share a single property set.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Presentation.Controls..::..TextRun
Namespace: Microsoft.SPOT.Presentation.Controls
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Class TextRun
public class TextRun
public ref class TextRun
type TextRun = class end
public class TextRun
The TextRun type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextRun | Initializes a new instance of the TextRun class (a text run). |
Top
Properties
Name | Description | |
---|---|---|
EndOfLine | Gets a text run that is marked as an end-of-line. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSize | Retrieves the dimensions (height and width) of the display area for the text in the current text run. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
_height | Specifies the height, in pixels, of the text in the current text run. | |
_width | Specifies the width, in pixels, of the text in the current text run. | |
Font | Specifies the font for the text in the current text run. | |
ForeColor | Specifies the foreground color for the text in the current text run. | |
Text | Specifies the text in the current text run. |
Top
Remarks
The text in a text run contains a property set. The property set includes the font style, foreground color, and any other formatting effects that have been specified.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.