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