Class Cells
Represents the cells of the worksheet.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class Cells : WorksheetEntityBase
Properties
ColumnCount
Gets the column count.
Declaration
public int ColumnCount { get; }
Property Value
System. The column count. |
Item[IEnumerable<CellRange>]
Gets the Cell
Declaration
public CellSelection this[IEnumerable<CellRange> cellRanges] { get; }
Parameters
System.
|
Property Value
Cell The cell selection. |
Item[Int32, Int32]
Gets the Cell
Declaration
public CellSelection this[int rowIndex, int columnIndex] { get; }
Parameters
System.
|
System.
|
Property Value
Cell The cell selection. |
Item[Int32, Int32, Int32, Int32]
Gets the Cell
Declaration
public CellSelection this[int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex] { get; }
Parameters
System.
|
System.
|
System.
|
System.
|
Property Value
Cell The cell selection. |
Item[CellIndex]
Gets the Cell
Declaration
public CellSelection this[CellIndex cellIndex] { get; }
Parameters
Cell
|
Property Value
Cell The cell selection. |
Item[CellIndex, CellIndex]
Gets the Cell
Declaration
public CellSelection this[CellIndex fromIndex, CellIndex toIndex] { get; }
Parameters
Property Value
Cell The cell selection. |
Item[CellRange]
Gets the Cell
Declaration
public CellSelection this[CellRange cellRange] { get; }
Parameters
Cell
|
Property Value
Cell The cell selection. |
RowCount
Gets the row count.
Declaration
public int RowCount { get; }
Property Value
System. The row count. |
Methods
CanInsert(Int32, Int32, Int32, InsertShiftType)
Determines whether cells can be inserted at the specified row index.
Declaration
public bool CanInsert(int rowIndex, int columnIndex, int itemCount, InsertShiftType shiftType)
Parameters
System. Index of the row. |
System. Index of the column. |
System. The item count. |
Insert Type of the shift. |
Returns
System. The value indicating whether cells can be inserted at the specified row index. |
CanInsert(CellRange, InsertShiftType)
Determines whether cells can be inserted at the specified cell range.
Declaration
public bool CanInsert(CellRange cellRange, InsertShiftType shiftType)
Parameters
Cell The cell range. |
Insert Type of the shift. |
Returns
System. The value indicating whether cells can be inserted at the specified cell range. |
GetCellSelection(IEnumerable<CellRange>)
Gets the cell selection.
Declaration
public CellSelection GetCellSelection(IEnumerable<CellRange> cellRanges)
Parameters
System. The cell ranges. |
Returns
Cell The cell selection. |
GetCellSelection(Int32, Int32)
Gets cell selection.
Declaration
public CellSelection GetCellSelection(int rowIndex, int columnIndex)
Parameters
System. Index of the row. |
System. Index of the column. |
Returns
Cell The cell selection. |
GetCellSelection(Int32, Int32, Int32, Int32)
Gets cell selection.
Declaration
public CellSelection GetCellSelection(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)
Parameters
System. Start row index. |
System. Start column index. |
System. End row index. |
System. End column index. |
Returns
Cell The cell selection. |
GetCellSelection(CellIndex)
Gets cell selection.
Declaration
public CellSelection GetCellSelection(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
Returns
Cell The cell selection. |
GetCellSelection(CellIndex, CellIndex)
Gets cell selection.
Declaration
public CellSelection GetCellSelection(CellIndex fromIndex, CellIndex toIndex)
Parameters
Returns
Cell The cell selection. |
GetCellSelection(CellRange)
Gets cell selection.
Declaration
public CellSelection GetCellSelection(CellRange cellRange)
Parameters
Cell The cell range. |
Returns
Cell The cell selection. |
GetContainingMergedRanges(CellRange)
Gets the merged ranges containing the specified cell range.
Declaration
public IEnumerable<CellRange> GetContainingMergedRanges(CellRange range)
Parameters
Cell The range. |
Returns
System. The merged ranges containing the specified cell range. |
GetIsMerged(CellIndex)
Gets the value indicating whether the cell index is contained in a merged range.
Declaration
public bool GetIsMerged(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
Returns
System. The value indicating whether the cell index is contained in a merged range. |
GetMergedCellRanges()
Gets the merged cell ranges.
Declaration
public IEnumerable<CellRange> GetMergedCellRanges()
Returns
System. The cell ranges. |
GetMergeState(Int32, Int32)
Gets the merge state.
Declaration
public CellMergeState GetMergeState(int rowIndex, int columnIndex)
Parameters
System. Index of the row. |
System. Index of the column. |
Returns
Cell The merge state. |
GetMergeState(CellIndex)
Gets the merge state.
Declaration
public CellMergeState GetMergeState(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
Returns
Cell The merge state. |
Insert(Int32, Int32, Int32, InsertShiftType)
Inserts the specified number of items at the specified location.
Declaration
public bool Insert(int rowIndex, int columnIndex, int itemCount, InsertShiftType shiftType)
Parameters
System. Index of the row. |
System. Index of the column. |
System. The item count. |
Insert Type of the shift. |
Returns
System. The value indicating whether the insertion was successful. |
Insert(CellRange, InsertShiftType)
Inserts cells at the specified cell range.
Declaration
public bool Insert(CellRange cellRange, InsertShiftType shiftType)
Parameters
Cell The cell range. |
Insert Type of the shift. |
Returns
System. The value indicating whether the insertion was successful. |
OnCellPropertyChanged(CellPropertyChangedEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellPropertyChanged(CellPropertyChangedEventArgs args)
Parameters
Cell The Cell |
OnCellRangeInsertedOrRemoved(CellRangeInsertedOrRemovedEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellRangeInsertedOrRemoved(CellRangeInsertedOrRemovedEventArgs args)
Parameters
Cell The Cell |
OnMergedCellsChanged(MergedCellRangesChangedEventArgs)
Raises the Merged
Declaration
protected virtual void OnMergedCellsChanged(MergedCellRangesChangedEventArgs args)
Parameters
Merged The Merged |
Remove(Int32, Int32, Int32, RemoveShiftType)
Removes the specified number of items at the specified location.
Declaration
public void Remove(int rowIndex, int columnIndex, int itemCount, RemoveShiftType shiftType)
Parameters
System. Index of the row. |
System. Index of the column. |
System. The item count. |
Remove Type of the shift. |
Remove(CellRange, RemoveShiftType)
Removes cells at the specified cell range.
Declaration
public void Remove(CellRange cellRange, RemoveShiftType shiftType)
Parameters
Cell The cell range. |
Remove Type of the shift. |
TryGetContainingMergedRange(CellIndex, out CellRange)
Tries to get the merged range containing the index.
Declaration
public bool TryGetContainingMergedRange(CellIndex cellIndex, out CellRange mergedRange)
Parameters
Returns
System. The value indicating whether precisely a range was found. |
Events
CellPropertyChanged
Occurs when a cell property is changed.
Declaration
public event EventHandler<CellPropertyChangedEventArgs> CellPropertyChanged
Event Type
System.
|
CellRangeInsertedOrRemoved
Occurs when a cell range is inserted or removed.
Declaration
public event EventHandler<CellRangeInsertedOrRemovedEventArgs> CellRangeInsertedOrRemoved
Event Type
System.
|
MergedCellsChanged
Occurs when merged cells are changed.
Declaration
public event EventHandler<MergedCellRangesChangedEventArgs> MergedCellsChanged
Event Type
System.
|