Class EpplusExcelExternalRangeInfo
- Namespace
- OfficeOpenXml.FormulaParsing.Ranges
- Assembly
- EPPlus.dll
Provide the formula parser with information about an workbook external range.
public class EpplusExcelExternalRangeInfo : IRangeInfo, IAddressInfo, IEnumerator<ICellInfo>, IEnumerator, IDisposable, IEnumerable<ICellInfo>, IEnumerable
- Inheritance
-
EpplusExcelExternalRangeInfo
- Implements
- Inherited Members
Constructors
EpplusExcelExternalRangeInfo(ExcelExternalWorkbook, FormulaRangeAddress, ParsingContext)
Constructor with external workbook
public EpplusExcelExternalRangeInfo(ExcelExternalWorkbook externalWb, FormulaRangeAddress address, ParsingContext ctx)
Parameters
externalWb
ExcelExternalWorkbookaddress
FormulaRangeAddressctx
ParsingContext
EpplusExcelExternalRangeInfo(int, int, int, int, int, int, ParsingContext)
The constructor
public EpplusExcelExternalRangeInfo(int externalReferenceIx, int worksheetIx, int fromRow, int fromCol, int toRow, int toCol, ParsingContext ctx)
Parameters
externalReferenceIx
intIndex of the external workbook
worksheetIx
intThe external worksheet index/id
fromRow
intThe from row of the address
fromCol
intThe from column of the address
toRow
intThe to row of the address
toCol
intThe to column of the address
ctx
ParsingContextParsing context
Properties
Address
The address of the range
public FormulaRangeAddress Address { get; }
Property Value
Current
Return the current object in the enumeration
public ICellInfo Current { get; }
Property Value
Dimension
Dimension
public FormulaRangeAddress Dimension { get; }
Property Value
IsEmpty
If the range is empty, ie contains no set cells.
public bool IsEmpty { get; }
Property Value
IsInMemoryRange
True if this is a range that doesn't is connected to a worksheet.
public bool IsInMemoryRange { get; }
Property Value
IsMulti
If the range contains more than one set cell.
public bool IsMulti { get; }
Property Value
IsRef
If the range is invalid (#REF!)
public bool IsRef { get; }
Property Value
Size
Size of the range
public RangeDefinition Size { get; }
Property Value
Worksheet
Not applicable for external ranges. Returns null
public ExcelWorksheet Worksheet { get; }
Property Value
Methods
Dispose()
Called when the object is disposed.
public void Dispose()
GetEnumerator()
Gets the enumerator
public IEnumerator<ICellInfo> GetEnumerator()
Returns
- IEnumerator<ICellInfo>
The enumerator
GetNCells()
Get the number of cells in the range
public int GetNCells()
Returns
GetOffset(int, int)
Get the value from the range with the offset from the top-left cell
public object GetOffset(int rowOffset, int colOffset)
Parameters
Returns
GetOffset(int, int, int, int)
Get offset
public IRangeInfo GetOffset(int rowOffsetStart, int colOffsetStart, int rowOffsetEnd, int colOffsetEnd)
Parameters
Returns
GetValue(int, int)
Gets the value
public object GetValue(int row, int col)
Parameters
Returns
IsHidden(int, int)
Is hidden
public bool IsHidden(int rowOffset, int colOffset)
Parameters
Returns
MoveNext()
Moves to the next item in the enumeration
public bool MoveNext()
Returns
- bool
returns true until the enumeration has reached the last cell.
NextCell()
Moves to the next item in the enumeration
public bool NextCell()
Returns
Reset()
Resets the enumeration
public void Reset()