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