Class DataGridSelectedCellCollection
Represents a collection of SelectedCellsInfo, that represent the selected cells in a SfDataGrid control. This class cannot be inherited.
Inheritance
System.Object
DataGridSelectedCellCollection
Implements
System.Collections.IEnumerable
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridSelectedCellCollection : Object, IList<SelectedCellsInfo>, ICollection<SelectedCellsInfo>, IEnumerable<SelectedCellsInfo>, IEnumerable
Constructors
DataGridSelectedCellCollection()
Declaration
public DataGridSelectedCellCollection()
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Gets or sets the selected cells information at the specified index.
Declaration
public SelectedCellsInfo this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Add(SelectedCellInfo)
Declaration
public void Add(SelectedCellInfo cellInfo)
Parameters
Add(SelectedCellsInfo)
Declaration
public void Add(SelectedCellsInfo cellsInfo)
Parameters
Clear()
Declaration
Contains(SelectedCellInfo)
Declaration
public bool Contains(SelectedCellInfo cellInfo)
Parameters
Returns
Contains(SelectedCellsInfo)
Declaration
public bool Contains(SelectedCellsInfo cellsInfo)
Parameters
Returns
CopyTo(SelectedCellsInfo[], Int32)
Copies all the cells information to the specified destination array index.
Declaration
public void CopyTo(SelectedCellsInfo[] array, int arrayIndex)
Parameters
GetEnumerator()
Declaration
public IEnumerator<SelectedCellsInfo> GetEnumerator()
Returns
IndexOf(SelectedCellsInfo)
Declaration
public int IndexOf(SelectedCellsInfo item)
Parameters
Returns
Insert(Int32, SelectedCellInfo)
Declaration
public void Insert(int index, SelectedCellInfo cellInfo)
Parameters
Insert(Int32, SelectedCellsInfo)
Declaration
public void Insert(int index, SelectedCellsInfo newItem)
Parameters
Remove(SelectedCellInfo)
Declaration
public bool Remove(SelectedCellInfo cellInfo)
Parameters
Returns
Remove(SelectedCellsInfo)
Declaration
public bool Remove(SelectedCellsInfo cellsInfo)
Parameters
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Implements
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable