Class
RowsColumnsBase

Abstract base class for row and column collections, providing shared insertion, removal, and property management functionality.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class RowsColumnsBase : WorksheetEntityBase

Inheritance: objectWorksheetEntityBaseRowsColumnsBase

Derived Classes: ColumnsRows

Inherited Members WorksheetEntityBase.Worksheet

Properties

Cells

Gets the worksheet's cell collection for coordinating row/column operations with cell data.

Declaration

cs-api-definition
protected Cells Cells { get; }

Property Value

Cells

The cells.

Count

Gets the total number of rows or columns in the worksheet.

Declaration

cs-api-definition
public abstract int Count { get; }

Property Value

int

The row / column count.

Methods

CanInsert(int, int)

Checks whether the specified number of rows or columns can be inserted at the given index without exceeding worksheet capacity.

Declaration

cs-api-definition
public abstract bool CanInsert(int index, int itemCount)

Parameters

index

int

The index.

itemCount

int

The item count.

Returns

bool

The value indicating whether this instance can be inserted at the specified index

Insert(int)

Inserts a single row or column at the specified index, shifting subsequent items.

Declaration

cs-api-definition
public bool Insert(int index)

Parameters

index

int

The index.

Returns

bool

The value indicating whether the insert command was successfully executed.

Insert(int, int)

Inserts the specified number of rows or columns at the given index, shifting subsequent items.

Declaration

cs-api-definition
public bool Insert(int index, int itemCount)

Parameters

index

int

The index.

itemCount

int

The item count.

Returns

bool

The value indicating whether the insert command was successfully executed.

InsertOverride(int, int)

Executes the derived class-specific insertion logic at the specified index.

Declaration

cs-api-definition
protected abstract bool InsertOverride(int index, int itemCount)

Parameters

index

int

The index.

itemCount

int

The item count.

Returns

bool

Remove(int)

Removes a single row or column at the specified index, shifting remaining items.

Declaration

cs-api-definition
public void Remove(int index)

Parameters

index

int

The index.

Remove(int, int)

Removes the specified number of rows or columns starting at the given index, shifting remaining items.

Declaration

cs-api-definition
public void Remove(int index, int itemCount)

Parameters

index

int

The index.

itemCount

int

The item count.

RemoveOverride(int, int)

Executes the derived class-specific removal logic at the specified index.

Declaration

cs-api-definition
protected abstract void RemoveOverride(int index, int itemCount)

Parameters

index

int

The index.

itemCount

int

The item count.