Class RowsColumnsBase
Abstract base class for row and column collections, providing shared insertion, removal, and property management functionality.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class RowsColumnsBase : WorksheetEntityBase
Properties
Cells
Gets the worksheet's cell collection for coordinating row/column operations with cell data.
Declaration
protected Cells Cells { get; }
Property Value
|
Cells
The cells. |
Count
Gets the total number of rows or columns in the worksheet.
Declaration
public abstract int Count { get; }
Property Value
|
System.Int32
The row / column count. |
Methods
CanInsert(Int32, Int32)
Checks whether the specified number of rows or columns can be inserted at the given index without exceeding worksheet capacity.
Declaration
public abstract bool CanInsert(int index, int itemCount)
Parameters
|
System.Int32
index
The index. |
|
System.Int32
itemCount
The item count. |
Returns
|
System.Boolean
The value indicating whether this instance can be inserted at the specified index |
Insert(Int32)
Inserts a single row or column at the specified index, shifting subsequent items.
Declaration
public bool Insert(int index)
Parameters
|
System.Int32
index
The index. |
Returns
|
System.Boolean
The value indicating whether the insert command was successfully executed. |
Insert(Int32, Int32)
Inserts the specified number of rows or columns at the given index, shifting subsequent items.
Declaration
public bool Insert(int index, int itemCount)
Parameters
|
System.Int32
index
The index. |
|
System.Int32
itemCount
The item count. |
Returns
|
System.Boolean
The value indicating whether the insert command was successfully executed. |
InsertOverride(Int32, Int32)
Executes the derived class-specific insertion logic at the specified index.
Declaration
protected abstract bool InsertOverride(int index, int itemCount)
Parameters
|
System.Int32
index
The index. |
|
System.Int32
itemCount
The item count. |
Returns
|
System.Boolean
|
Remove(Int32)
Removes a single row or column at the specified index, shifting remaining items.
Declaration
public void Remove(int index)
Parameters
|
System.Int32
index
The index. |
Remove(Int32, Int32)
Removes the specified number of rows or columns starting at the given index, shifting remaining items.
Declaration
public void Remove(int index, int itemCount)
Parameters
|
System.Int32
index
The index. |
|
System.Int32
itemCount
The item count. |
RemoveOverride(Int32, Int32)
Executes the derived class-specific removal logic at the specified index.
Declaration
protected abstract void RemoveOverride(int index, int itemCount)
Parameters
|
System.Int32
index
The index. |
|
System.Int32
itemCount
The item count. |