TreeDataGridItemsSourceView<T> Class
Definition
A strongly-typed view over a collection for use with Avalonia.Controls.TreeDataGrid.
public class TreeDataGridItemsSourceView<T>
Constructors
| Name | Description |
|---|---|
| TreeDataGridItemsSourceView<T> | No summary available. |
TreeDataGridItemsSourceView<T> Constructor
public TreeDataGridItemsSourceView<T>(System.Collections.Generic.IEnumerable<T> source)
Parameters
source System.Collections.Generic.IEnumerable<T>
Methods
| Name | Description |
|---|---|
| GetAt | Retrieves the item at the specified index. |
| GetEnumerator | No summary available. |
| GetOrCreate | Gets or creates a strongly-typed Avalonia.Controls.TreeDataGridItemsSourceView<T> for the specified items. |
| Dispose | Inherited from TreeDataGridItemsSourceView. |
| IndexFromKey | Retrieves the unique identifier (key) for the item at the specified index. Inherited from TreeDataGridItemsSourceView. |
| IndexOf | Gets the index of the specified item in the collection. Inherited from TreeDataGridItemsSourceView. |
| KeyFromIndex | Retrieves the index of the item that has the specified unique identifier (key). Inherited from TreeDataGridItemsSourceView. |
GetAt Method
Retrieves the item at the specified index.
public T GetAt(int index)
Parameters
index int
The index.
Returns
T
The item.
GetEnumerator Method
public System.Collections.Generic.IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>
GetOrCreate Method
Gets or creates a strongly-typed Avalonia.Controls.TreeDataGridItemsSourceView<T> for the specified items.
public Avalonia.Controls.TreeDataGridItemsSourceView<T><T> GetOrCreate(System.Collections.IEnumerable items)
Parameters
items System.Collections.IEnumerable
The items collection, or null.
Returns
Avalonia.Controls.TreeDataGridItemsSourceView<T><T>
A view wrapping the items, or Avalonia.Controls.TreeDataGridItemsSourceView<T>.Empty if items is null.
Properties
| Name | Description |
|---|---|
| Empty | Gets an empty Avalonia.Controls.TreeDataGridItemsSourceView |
| Item | No summary available. |
| Count | Gets the number of items in the collection. Inherited from TreeDataGridItemsSourceView. |
| HasKeyIndexMapping | Gets a value that indicates whether the items source can provide a unique key for each item. Inherited from TreeDataGridItemsSourceView. |
| Inner | Gets the inner collection. Inherited from TreeDataGridItemsSourceView. |
Empty Property
Gets an empty Avalonia.Controls.TreeDataGridItemsSourceView
public Avalonia.Controls.TreeDataGridItemsSourceView<T><T> Empty { get; set; }
Item Property
public T Item { get; set; }
Events
| Name | Description |
|---|---|
| CollectionChanged | Occurs when the collection has changed to indicate the reason for the change and which items changed. Inherited from TreeDataGridItemsSourceView. |