Represents a row in a Microsoft Excel worksheet.

Inheritance

Inherited from: RowColumnBase

Gets the default cell format for cells in this row or column.

public IWorksheetCellFormat CellFormat { get; }

Inherited from: RowColumnBase

Gets or sets the value indicating whether the row or column is hidden.

public bool Hidden { get; set; }

Inherited from: RowColumnBase

Gets or sets the outline level for the row or column.

public int OutlineLevel { get; set; }

Inherited from: RowColumnBase

Gets the worksheet to which the row or column belongs.

public Worksheet Worksheet { get; }

Gets the collection of cells in the row.

public WorksheetCellCollection Cells { get; }

Gets or sets the height of the row in twips (1/20th of a point).

public int Height { get; set; }

Gets the 0-based index of the row in the worksheet.

public override int Index { get; }

Inherited from: RowColumnBase

Gets the resolved cell formatting for the cells in the row or column.

public IWorksheetCellFormat GetResolvedCellFormat()

Returns any

ApplyCellFormula(int, string, CellReferenceMode?)

Section titled "ApplyCellFormula(int, string, CellReferenceMode?)"

Applies a formula to the cell at the specified column index.

public void ApplyCellFormula(int columnIndex, string formula, CellReferenceMode? cellReferenceMode = null)

Parameters

  • columnIndex: int
  • formula: string
  • cellReferenceMode: CellReferenceMode?

Returns any

Gets the data table to which the cell at the specified index belongs.

public WorksheetDataTable GetCellAssociatedDataTable(int columnIndex)

Parameters

  • columnIndex: int

Returns any

GetCellAssociatedMergedCellsRegion(int)

Section titled "GetCellAssociatedMergedCellsRegion(int)"

Gets the merged cells region which contains the cell at the specified index, or null if the cell is not merged.

public WorksheetMergedCellsRegion GetCellAssociatedMergedCellsRegion(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the to which the cell at the specified index belongs.

public WorksheetTable GetCellAssociatedTable(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the bounds of the cell at the specified column index in twips (1/20th of a point).

public Rect GetCellBoundsInTwips(int columnIndex)

Parameters

  • columnIndex: int

Returns any

GetCellBoundsInTwips(int, PositioningOptions)

Section titled "GetCellBoundsInTwips(int, PositioningOptions)"

Gets the bounds of the cell at the specified column index in twips (1/20th of a point).

public Rect GetCellBoundsInTwips(int columnIndex, PositioningOptions options)

Parameters

  • columnIndex: int
  • options: PositioningOptions

Returns any

Gets or sets the comment applied to the cell at the specified column index.

public WorksheetCellComment GetCellComment(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the cell conditional format for the cell at the specified column index.

public CellConditionalFormat GetCellConditionalFormat(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the cell formatting for the cell at the specified column index.

public IWorksheetCellFormat GetCellFormat(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the formula which has been applied to the cell at the specified column index.

public Formula GetCellFormula(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the effective hyperlink on the cell at the specified index.

public WorksheetHyperlink GetCellHyperlink(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the display text in the cell at the specified index.

public string GetCellText(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the text in the cell at the specified index.

public string GetCellText(int columnIndex, TextFormatMode textFormatMode)

Parameters

  • columnIndex: int
  • textFormatMode: TextFormatMode

Returns any

Gets the value of the cell at the specified column index.

public object GetCellValue(int columnIndex)

Parameters

  • columnIndex: int

Returns any

Gets the resolved cell formatting for the cell at the specified column index.

public IWorksheetCellFormat GetResolvedCellFormat(int columnIndex)

Parameters

  • columnIndex: int

Returns any

SetCellComment(int, WorksheetCellComment)

Section titled "SetCellComment(int, WorksheetCellComment)"

Sets the comment applied to the cell at the specified column index.

public void SetCellComment(int columnIndex, WorksheetCellComment comment)

Parameters

  • columnIndex: int
  • comment: WorksheetCellComment

Returns any

Sets the value of a cell at the specified column index.

public void SetCellValue(int columnIndex, object value)

Parameters

  • columnIndex: int
  • value: object

Returns any

TryGetCellFormat(int, out IWorksheetCellFormat)

Section titled "TryGetCellFormat(int, out IWorksheetCellFormat)"

Gets the cell formatting for the cell at the specified column index if it is allocated.

public bool TryGetCellFormat(int columnIndex, out IWorksheetCellFormat cellFormat)

Parameters

  • columnIndex: int
  • cellFormat: IWorksheetCellFormat

Returns any

Returns a boolean indicating if the value of the cell is valid considering its associated

public bool ValidateCellValue(int columnIndex)

Parameters

  • columnIndex: int

Returns any