Skip to main content

TextRunCollection Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

No description available.

public class TextRunCollection : ICollection

Properties

Count

public int Count { get; }

Gets the number of elements contained in the array. (inherited)

index]

public TextRun this[int index] { get; set; }

Indexer for the UIElementCollection. Gets or sets the UIElement stored at the zero-based index of the UIElementCollection. (inherited)

SyncRoot

public object SyncRoot { get; }

Gets an object that can be used to synchronize access to the collection. (inherited)

Methods

Add(string text, System.Drawing.Font font, Color foreColor)

public int Add(string text, System.Drawing.Font font, Color foreColor)

No description available.

ParameterTypeDescription
textstring
fontSystem.Drawing.Font
foreColorColor

Returns int

Add(TextRun textRun)

public int Add(TextRun textRun)

Appends a UIElement to the end of the UIElementCollection. (inherited)

ParameterTypeDescription
textRunTextRun

Returns int — The UIElementCollection index at which the UIElement has been added.

Clear()

public void Clear()

Removes all elements from the UIElementCollection. (inherited)

Contains(TextRun run)

public bool Contains(TextRun run)

Determines whether a element is in the UIElementCollection. (inherited)

ParameterTypeDescription
runTextRun

Returns bool

IndexOf(TextRun run)

public int IndexOf(TextRun run)

Returns the zero-based index of the UIElement. If the UIElement is not in the UIElementCollection -1 is returned. If null is passed to the method, the index of the first entry with null is returned. If there is no null entry -1 is returned. (inherited)

ParameterTypeDescription
runTextRun

Returns int

Insert(int index, TextRun run)

public void Insert(int index, TextRun run)

Inserts an element into the UIElementCollection at the specified index. (inherited)

ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
runTextRun

Remove(TextRun run)

public void Remove(TextRun run)

Removes the specified element from the UIElementCollection. (inherited)

ParameterTypeDescription
runTextRun

RemoveAt(int index)

public void RemoveAt(int index)

Removes the UIElement at the specified index. (inherited)

ParameterTypeDescription
indexintThe zero-based index of the element to remove.

CopyTo(Array array, int index)

public void CopyTo(Array array, int index)

Strongly typed version of CopyTo Copies the collection into the Array. (inherited)

ParameterTypeDescription
arrayArray
indexint