• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class FullColumnRange

Represents a range that spans one or more full columns in a worksheet.

Inheritance
object
Range
SimpleRange
FullColumnRange
Implements
INotifyPropertyChanged
IEnumerable<object>
IEnumerable
Inherited Members
Range.Sort()
Range.Sort(SortOrder)
Range.Sort(SortOrder, SortOrientation)
Range.ToString()
Range.ClearBorders()
Range.SetArrayFormula(string, bool)
Range.SetArrayFormula(string)
Range.FindAll(FindArguments)
Range.ReplaceAll(ReplaceArguments)
Range.CopyFrom(Range, PasteOptions)
Range.Equals(Range)
Range.Intersects(Range, Range)
Range.ClearFormats()
Range.Clear()
Range.ClearContents()
Range.ClearComments()
Range.ClearHyperlinks()
Range.Merge()
Range.Union(Range, Range)
Range.Intersection(Range, Range)
Range.SetColumnsWidthPixel(double)
Range.SetRowsHeight(double)
Range.SetFormula(string)
Range.SetFormula(string[])
Range.SetValue(object)
Range.SetValue(object[,])
Range.SetValue(object[])
Range.SetValue(DateTime[])
Range.SetValue(double[])
Range.SetValue(int[])
Range.SetValue(ErrorType[])
Range.RemoveDuplicates(RemoveDuplicatesOptions)
Range.DeleteEmptyRows(DeleteEmptyRowsOptions)
Range.DeleteEmptyColumns(DeleteEmptyColumnsOptions)
Range.CleanText(TextCleansingOptions)
Range.NameOrLabel
Range.this[int]
Range.Foreground
Range.Background
Range.WrapText
Range.VerticalAlignment
Range.HorizontalAlignment
Range.Format
Range.IsLocked
Range.AbsoluteLabel
Range.FullAbsoluteLabel
Range.FullLabel
Range.CellCount
Range.Fill
Range.Font
Range.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
Range.ColumnCount
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
Range.FirstColumnIndex
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
Range.FirstRowIndex
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
Range.IsFullColumn
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
Range.IsFullRow
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
Range.this[int, int]
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
Range.Label
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
Range.RowCount
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
Range.TopLeftCell
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
Range.Worksheet
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
Range.GetAllCells()
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
Range.GetColumns()
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
Range.GetRows()
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
Range.SetBorder(Border, BorderType)
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
Range.SetStyle(CellStyle)
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.

Implements

INotifyPropertyChanged
IEnumerable<T>
IEnumerable

Extension Methods

SortingExtensions.Sort(Range, bool)
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX