Columns
Manages all columns in a worksheet, providing access to column properties, widths, and visibility.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Columns : RowsColumnsBase
Inheritance: objectWorksheetEntityBaseRowsColumnsBaseColumns
Inherited Members
Events
Raised when one or more column widths change, providing the affected column index range.
public event EventHandler<RowColumnPropertyChangedEventArgs> ColumnsWidthChanged
Methods
Checks whether the specified number of columns can be inserted at the given index without exceeding worksheet limits.
Creates a selection for the column containing the specified cell index.
public ColumnSelection GetColumnSelection(CellIndex cellIndex)
Index of the cell.
Returns:The column selection.
Creates a selection for the columns intersecting the specified cell range.
public ColumnSelection GetColumnSelection(CellRange cellRange)
The cell range.
Returns:The column selection.
Creates a selection for the columns intersecting a collection of cell ranges.
public ColumnSelection GetColumnSelection(IEnumerable<CellRange> cellRanges)
The cell ranges.
Returns:The column selection.
Creates a selection for the column at the specified index.
public ColumnSelection GetColumnSelection(int index)
The index.
Returns:The column selection.
Retrieves the default width applied to all columns without explicit width settings.
Sets the default width for all columns without explicit width settings.
Properties
The total number of columns in the worksheet.
public override int Count { get; }
The row / column count.
Overrides:
Accesses the column containing the specified cell index.
public ColumnSelection this[CellIndex cellIndex] { get; }
The column selection.
Accesses the columns intersecting the specified cell range.
public ColumnSelection this[CellRange cellRange] { get; }
The column selection.
Accesses the columns intersecting a collection of cell ranges.
public ColumnSelection this[IEnumerable<CellRange> cellRanges] { get; }
The column selection.
Accesses a single column by index, returning a selection for applying properties or operations.
public ColumnSelection this[int index] { get; }
The column selection.