Represents a merged region of cells, or cells which share a value and format and appear as one cell when viewed in Microsoft Excel.

Implements
  • IEnumerable<WorksheetCell>
  • IEnumerable

Inherited from: WorksheetRegion

Gets the index of the first column in the region.

public int FirstColumn { get; }

Inherited from: WorksheetRegion

Gets the index of the first row in the region.

public int FirstRow { get; }

Inherited from: WorksheetRegion

Gets the index of the last column in the region.

public int LastColumn { get; }

Inherited from: WorksheetRegion

Gets the index of the last row in the region.

public int LastRow { get; }

Inherited from: WorksheetRegion

Gets the worksheet on which the region resides.

public Worksheet Worksheet { get; }

Gets the cell formatting for the merged cell region.

public IWorksheetCellFormat CellFormat { get; }

Gets or sets the comment for the merged cells region.

public WorksheetCellComment Comment { get; set; }

Gets the formula which has been applied to the merged region.

public Formula Formula { get; }

Gets or sets the value of the merged cell region.

public object Value { get; set; }

Inherited from: WorksheetRegion

Determines whether the specified value equals this .

public override bool Equals(object obj)

Parameters

  • obj: object

Returns any

Inherited from: WorksheetRegion

Gtes the hash code for the .

public override int GetHashCode()

Returns any

Inherited from: WorksheetRegion

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

public override string ToString()

Returns any

Inherited from: WorksheetRegion

Applies a array formula to the region of cells.

public void ApplyArrayFormula(string value)

Parameters

  • value: string

Returns any

Inherited from: WorksheetRegion

Applies a formula to the region of cells.

public void ApplyFormula(string value)

Parameters

  • value: string

Returns any

Inherited from: WorksheetRegion

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)"

Inherited from: WorksheetRegion

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

Inherited from: WorksheetRegion

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

public Rect GetBoundsInTwips()

Returns any

GetBoundsInTwips(PositioningOptions)

Section titled "GetBoundsInTwips(PositioningOptions)"

Inherited from: WorksheetRegion

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

public Rect GetBoundsInTwips(PositioningOptions options)

Parameters

  • options: PositioningOptions

Returns any

Inherited from: WorksheetRegion

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)"

Inherited from: WorksheetRegion

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

Gets the resolved cell formatting for this merged cell region.

public IWorksheetCellFormat GetResolvedCellFormat()

Returns any