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.
| Parameter | Type | Description |
|---|---|---|
text | string | |
font | System.Drawing.Font | |
foreColor | Color |
Returns int
Add(TextRun textRun)
public int Add(TextRun textRun)
Appends a UIElement to the end of the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
textRun | TextRun |
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)
| Parameter | Type | Description |
|---|---|---|
run | TextRun |
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)
| Parameter | Type | Description |
|---|---|---|
run | TextRun |
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)
| Parameter | Type | Description |
|---|---|---|
index | int | The zero-based index at which value should be inserted. |
run | TextRun |
Remove(TextRun run)
public void Remove(TextRun run)
Removes the specified element from the UIElementCollection. (inherited)
| Parameter | Type | Description |
|---|---|---|
run | TextRun |
RemoveAt(int index)
public void RemoveAt(int index)
Removes the UIElement at the specified index. (inherited)
| Parameter | Type | Description |
|---|---|---|
index | int | The 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)
| Parameter | Type | Description |
|---|---|---|
array | Array | |
index | int |