Represents a rectangular region of cells on a worksheet.

Inheritance

Classes that extend this class.

Derived Classes
Implements
  • IEnumerable<WorksheetCell>
  • IEnumerable

constructor

public WorksheetRegion(Worksheet worksheet, int firstRow, int firstColumn, int lastRow, int lastColumn)

Returns WorksheetRegion

Gets the index of the first column in the region.

public int FirstColumn { get; }

Gets the index of the first row in the region.

public int FirstRow { get; }

Gets the index of the last column in the region.

public int LastColumn { get; }

Gets the index of the last row in the region.

public int LastRow { get; }

Gets the worksheet on which the region resides.

public Worksheet Worksheet { get; }

Applies a array formula to the region of cells.

public void ApplyArrayFormula(string value)

Parameters

  • value: string

Returns any

Applies a formula to the region of cells.

public void ApplyFormula(string value)

Parameters

  • value: string

Returns any

Determines whether the specified value equals this .

public override bool Equals(object obj)

Parameters

  • obj: object

Returns any

Formats the region as a table and adds an associated to the collection.

public WorksheetTable FormatAsTable(bool tableHasHeaders)

Parameters

  • tableHasHeaders: bool

Returns any

FormatAsTable(bool, WorksheetTableStyle)

Section titled "FormatAsTable(bool, WorksheetTableStyle)"

Formats the region as a table and adds an associated to the collection.

public WorksheetTable FormatAsTable(bool tableHasHeaders, WorksheetTableStyle tableStyle)

Parameters

  • tableHasHeaders: bool
  • tableStyle: WorksheetTableStyle

Returns any

Gets the bounds of the region in twips (1/20th of a point).

public Rect GetBoundsInTwips()

Returns any

GetBoundsInTwips(PositioningOptions)

Section titled "GetBoundsInTwips(PositioningOptions)"

Gets the bounds of the region in twips (1/20th of a point).

public Rect GetBoundsInTwips(PositioningOptions options)

Parameters

  • options: PositioningOptions

Returns any

Gtes the hash code for the .

public override int GetHashCode()

Returns any

Gets the string representation of the range of cells in the region.

public override string ToString()

Returns any

Gets the string representation of the range of cells in the region.

public string ToString(CellReferenceMode cellReferenceMode, bool includeWorksheetName)

Parameters

  • cellReferenceMode: CellReferenceMode
  • includeWorksheetName: bool

Returns any

ToString(CellReferenceMode, bool, bool, bool)

Section titled "ToString(CellReferenceMode, bool, bool, bool)"

Gets the string representation of the range of cells in the region.

public string ToString(CellReferenceMode cellReferenceMode, bool includeWorksheetName, bool useRelativeColumn, bool useRelativeRow)

Parameters

  • cellReferenceMode: CellReferenceMode
  • includeWorksheetName: bool
  • useRelativeColumn: bool
  • useRelativeRow: bool

Returns any