New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public abstract class RowsColumnsBase : WorksheetEntityBase

Inheritance: objectWorksheetEntityBaseRowsColumnsBase

Derived Classes: ColumnsRows

Inherited Members WorksheetEntityBase.Worksheet

Methods

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

C#
public abstract bool CanInsert(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Returns:

bool

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

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

C#
public bool Insert(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Returns:

bool

The value indicating whether the insert command was successfully executed.

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

C#
public bool Insert(int index)
Parameters:indexint

The index.

Returns:

bool

The value indicating whether the insert command was successfully executed.

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

C#
protected abstract bool InsertOverride(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Returns:

bool

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

C#
public void Remove(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

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

C#
public void Remove(int index)
Parameters:indexint

The index.

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

C#
protected abstract void RemoveOverride(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Properties

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

C#
protected Cells Cells { get; }
Property Value:

The cells.

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

C#
public abstract int Count { get; }
Property Value:

The row / column count.