Class TreeGridSelectedCellCollection
Represents the collection that maintains the selected cells in a SfTreeGrid when SelectionUnit is Cell.
Implements
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridSelectedCellCollection : IList<TreeGridSelectedCellInfo>, ICollection<TreeGridSelectedCellInfo>, IEnumerable<TreeGridSelectedCellInfo>, IEnumerable
Remarks
The selected cells are grouped by rows. Each TreeGridSelectedCellInfo holds the row data and the list of columns selected within that row.
Constructors
TreeGridSelectedCellCollection()
Declaration
public TreeGridSelectedCellCollection()
Properties
Count
Gets the number of selected cell row infos contained in the TreeGridSelectedCellCollection.
Declaration
public int Count { get; }
Property Value
| Type |
|---|
| int |
IsReadOnly
Gets a value indicating whether the TreeGridSelectedCellCollection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type |
|---|
| bool |
this[int]
Gets or sets the TreeGridSelectedCellInfo at the specified index.
Declaration
public TreeGridSelectedCellInfo this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index. |
Property Value
| Type |
|---|
| TreeGridSelectedCellInfo |
Methods
Add(TreeGridSelectedCellInfo)
Adds the specified cells info into the TreeGridSelectedCellCollection.
Declaration
public void Add(TreeGridSelectedCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridSelectedCellInfo | item | The cells info to add. |
Clear()
Removes all elements from the TreeGridSelectedCellCollection.
Declaration
public void Clear()
Contains(TreeGridSelectedCellInfo)
Determines whether the specified cells info contains in the TreeGridSelectedCellCollection.
Declaration
public bool Contains(TreeGridSelectedCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridSelectedCellInfo | item | The cells info to locate. |
Returns
| Type | Description |
|---|---|
| bool | True if the cells info exists; otherwise, false. |
CopyTo(TreeGridSelectedCellInfo[], int)
Copies all the cells information to the specified destination array index.
Declaration
public void CopyTo(TreeGridSelectedCellInfo[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridSelectedCellInfo[] | array | The destination array. |
| int | arrayIndex | The destination array index. |
GetEnumerator()
Returns an enumerator that iterates through the TreeGridSelectedCellCollection.
Declaration
public IEnumerator<TreeGridSelectedCellInfo> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<TreeGridSelectedCellInfo> | The enumerator for the collection. |
IndexOf(TreeGridSelectedCellInfo)
Determines the index of the specified cells info in the TreeGridSelectedCellCollection.
Declaration
public int IndexOf(TreeGridSelectedCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridSelectedCellInfo | item | The cells info to locate. |
Returns
| Type | Description |
|---|---|
| int | The index of the cells info; otherwise, -1. |
Insert(int, TreeGridSelectedCellInfo)
Inserts the specified cells info at the specified index in the TreeGridSelectedCellCollection.
Declaration
public void Insert(int index, TreeGridSelectedCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index to insert at. |
| TreeGridSelectedCellInfo | item | The cells info to insert. |
Remove(TreeGridSelectedCellInfo)
Removes the first occurrence of the specified cells info from the TreeGridSelectedCellCollection.
Declaration
public bool Remove(TreeGridSelectedCellInfo item)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridSelectedCellInfo | item | The cells info to remove. |
Returns
| Type | Description |
|---|---|
| bool | True if the cells info is removed; otherwise, false. |
RemoveAt(int)
Removes the cells info at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index to remove at. |