Class FullColumnRange
Represents a range that spans one or more full columns in a worksheet.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class FullColumnRange : SimpleRange, INotifyPropertyChanged, IEnumerable<object>, IEnumerable
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
Examples
// Create a range spanning columns A through C
var fullColumns = new FullColumnRange(worksheet.Columns[0], worksheet.Columns[2]);
fullColumns.Width = 15.0; // Set width for all columns in the range
Constructors
FullColumnRange(Column)
Initializes a new instance of FullColumnRange.
Declaration
public FullColumnRange(Column column)
Parameters
| Type | Name | Description |
|---|---|---|
| Column | column | The column to create the range from. |
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
FullColumnRange(Column, Column)
Initializes a new FullColumnRange spanning two columns.
Declaration
public FullColumnRange(Column column1, Column column2)
Parameters
| Type | Name | Description |
|---|---|---|
| Column | column1 | The first column in the range. |
| Column | column2 | The last column in the range. |
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
Properties
ColumnCount
Gets the number of columns in this range.
Declaration
public override int ColumnCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
FirstColumnIndex
Gets the index of the first column in this range.
Declaration
public override int FirstColumnIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
FirstRowIndex
Gets the index of the first row in this range (always 0 for full column ranges).
Declaration
public override int FirstRowIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
IsFullColumn
Gets a value indicating whether this range represents a full column.
Declaration
public override bool IsFullColumn { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
IsFullRow
Gets a value indicating whether this range represents a full row.
Declaration
public override bool IsFullRow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
this[int, int]
Gets the cell at the specified row and column offset within this range.
Declaration
public override Cell this[int row, int column] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | The row index. |
| int | column | The column offset from the first column. |
Property Value
| Type | Description |
|---|---|
| Cell | The cell at the specified position. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
Label
Gets the label representation of this full column range (e.g., "A:C").
Declaration
public override string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
RowCount
Gets the number of rows in this range (always the maximum row span for full column ranges).
Declaration
public override int RowCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
TopLeftCell
Get the cell in the top left corner of the range
Declaration
public override Cell TopLeftCell { get; }
Property Value
| Type | Description |
|---|---|
| Cell |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
Worksheet
Gets the worksheet containing this range.
Declaration
public override sealed Worksheet Worksheet { get; }
Property Value
| Type | Description |
|---|---|
| Worksheet |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
Methods
GetAllCells()
Gets all cells in this full column range, including empty cells.
Declaration
public override IEnumerable<Cell> GetAllCells()
Returns
| Type | Description |
|---|---|
| IEnumerable<Cell> | An enumerable of all cells in the range. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
GetColumns()
Retrieves the requested columns from the FullColumnRange.
Declaration
public override IEnumerable<Column> GetColumns()
Returns
| Type | Description |
|---|---|
| IEnumerable<Column> | The get columns returned by the operation. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
GetRows()
Gets all rows in this full column range.
Declaration
public override IEnumerable<Row> GetRows()
Returns
| Type | Description |
|---|---|
| IEnumerable<Row> | An enumerable of all rows in the worksheet. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
SetBorder(Border, BorderType)
Updates the border held by the FullColumnRange.
Declaration
public override void SetBorder(Border border, BorderType borderType)
Parameters
| Type | Name | Description |
|---|---|---|
| Border | border | The border used by the operation. |
| BorderType | borderType | The border type used by the operation. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.
SetStyle(CellStyle)
Updates the style held by the FullColumnRange.
Declaration
public override void SetStyle(CellStyle cellStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| CellStyle | cellStyle | The cell style used by the operation. |
Overrides
Remarks
FullColumnRange is used to represent operations that apply to entire columns,
such as formatting entire columns, hiding/unhiding columns, or setting column widths.
This class inherits from SimpleRange and provides column-specific implementations for range operations.