Class XlsxFormulaReference
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
One reference of a formula: what it points at, on which sheet, and which of its parts are absolute.
public sealed class XlsxFormulaReference
- Inheritance
-
XlsxFormulaReference
- Inherited Members
Remarks
A reference is what the file's text says, not what it resolves to: a sheet that does not exist and a name nobody defined are still references.
Properties
- IsColumnAbsolute
Gets whether the column of the first corner as written is absolute (
$B4).
- IsLastColumnAbsolute
Gets whether the column of the second corner as written is absolute; the first corner's for one cell.
- IsLastRowAbsolute
Gets whether the row of the second corner as written is absolute; the first corner's for one cell.
- IsRowAbsolute
Gets whether the row of the first corner as written is absolute (
B$4).
- IsSheetDeleted
Gets whether the sheet the reference named was deleted (
#REF!A1).
- Kind
Gets what the reference points at.
- LastSheet
Gets the last sheet of a reference through several sheets (
Jan:Mar!B4); null otherwise.
- Length
Gets the number of characters.
- Name
Gets the defined name or the table's name; null for a reference to cells. Empty for a structured reference that names no table (
[@Qty]).
- Range
Gets the cells, for a cell, a range, rows or columns; null otherwise. Whole rows cover every column and whole columns every row. The corners are in order whatever order the formula writes them in.
- Sheet
Gets the sheet the reference names, without quotation; null when it names none and means the formula's own sheet.
- Start
Gets the index of the reference's first character in the formula's text.
- Text
Gets the reference's characters, exactly as the formula has them.
- Workbook
Gets the other workbook a reference names, as written between its brackets: the index of an external link (
1in[1]Sheet1!A1) or a file name; null for this workbook.
Methods
- ToString()
Returns the reference's characters.