TextRunCollection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides methods and properties that enable you to work with groups, or collections, of TextRun objects.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Presentation.Controls..::..TextRunCollection

Namespace:  Microsoft.SPOT.Presentation.Controls
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Class TextRunCollection _
    Implements ICollection, IEnumerable
public class TextRunCollection : ICollection, 
    IEnumerable
public ref class TextRunCollection : ICollection, 
    IEnumerable
type TextRunCollection =  
    class
        interface ICollection
        interface IEnumerable
    end
public class TextRunCollection implements ICollection, IEnumerable

The TextRunCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of objects in the current text run collection.
Public property IsSynchronized Gets a value that indicates whether access to the current text run collection is presently synchronized.
Public property Item Gets or sets a specified object in the current text run collection.
Public property SyncRoot Gets an object that can be used to synchronize access to the current text run collection.

Top

Methods

  Name Description
Public method Add(TextRun) Adds a TextRun object (string) to the current text run collection.
Public method Add(String, Font, Color) Adds a TextRun object (string) to the current text run collection.
Public method Clear Empties the current text run collection.
Public method Contains Determines whether the current text run collection contains a specified text run.
Public method CopyTo Copies a specified portion of the current text run collection into a specified array.
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 GetEnumerator Retrieves an enumerator that programs can use to iterate through the current text run collection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the index number of the specified text run object, if that object is found in the current text run collection.
Public method Insert Inserts a specified text run object at a specified position (index number) in the current text run collection.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the first occurrence of a specified text run object from the current text run collection.
Public method RemoveAt Removes the text run object at a specified position (index number) in the current text run collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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