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
Public method TextRun Initializes a new instance of the TextRun class (a text run).

Top

Properties

  Name Description
Public propertyStatic member EndOfLine Gets a text run that is marked as an end-of-line.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetSize Retrieves the dimensions (height and width) of the display area for the text in the current text run.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Protected field _height Specifies the height, in pixels, of the text in the current text run.
Protected field _width Specifies the width, in pixels, of the text in the current text run.
Public field Font Specifies the font for the text in the current text run.
Public field ForeColor Specifies the foreground color for the text in the current text run.
Public field 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.

See Also

Reference

Microsoft.SPOT.Presentation.Controls Namespace