ColumnSelection
A selection of one or more worksheet columns for applying properties, formatting, and operations in batch.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class ColumnSelection : RowColumnSelectionBase
Inheritance: objectSelectionBaseRowColumnSelectionBaseColumnSelection
Inherited Members
Methods
Calculates and applies the optimal width for selected columns based on their content.
public void AutoFitWidth()
Makes the selected columns visible if they are currently hidden.
public void ClearHidden()
Resets the width of selected columns to the default worksheet column width.
public void ClearWidth()
Expands column widths to accommodate numeric values without truncation, preserving custom widths.
public void ExpandToFitNumberValuesWidth()
Retrieves whether the selected columns are hidden in the worksheet view.
public RangePropertyValue<bool> GetHidden()
The value of the hidden property
Retrieves the outline grouping level for the selected columns.
public override RangePropertyValue<int> GetOutlineLevel()
The outline level.
Overrides:
Retrieves the width value for the selected columns, indicating whether the value is uniform or varies.
public RangePropertyValue<ColumnWidth> GetWidth()
RangePropertyValue<ColumnWidth>
The width for the selection.
Inserts new columns at the position of the selected columns, shifting existing columns to the right.
Deletes the selected columns from the worksheet, shifting remaining columns to the left.
public void Remove()
Applies border styling to all cells in the selected columns.
public override void SetBorders(CellBorders value)
The value.
Overrides:
Hides or shows the selected columns in the worksheet view.
public void SetHidden(bool value)
The value indicating whether the selected columns are hidden.
Applies the specified width to all selected columns.