Interface IRangeInfo
Information about a specific range used by the formula parser.
Inherited Members
System.Collections.Generic.IEnumerator<OfficeOpenXml.FormulaParsing.ICellInfo>.Current
System.Collections.IEnumerator.MoveNext()
System.Collections.IEnumerator.Reset()
System.IDisposable.Dispose()
System.Collections.Generic.IEnumerable<OfficeOpenXml.FormulaParsing.ICellInfo>.GetEnumerator()
Namespace: OfficeOpenXml.FormulaParsing
Assembly: EPPlus.dll
Syntax
public interface IRangeInfo : IAddressInfo, IEnumerator<ICellInfo>, IEnumerator, IDisposable, IEnumerable<ICellInfo>, IEnumerable
Properties
Dimension
The worksheet dimension if the range referres to an worksheet address, otherwise the size of the array.
Declaration
FormulaRangeAddress Dimension { get; }
Property Value
Type | Description |
---|---|
Formula |
IsEmpty
If the range is empty
Declaration
bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System. |
IsInMemoryRange
Returns true if the range is not referring to the cell store, but rather keeps the data in memory.
Declaration
bool IsInMemoryRange { get; }
Property Value
Type | Description |
---|---|
System. |
IsMulti
If the contains more than one cell with a value.
Declaration
bool IsMulti { get; }
Property Value
Type | Description |
---|---|
System. |
IsRef
If the range is not valid and returns #REF!
Declaration
bool IsRef { get; }
Property Value
Type | Description |
---|---|
System. |
Size
Size of the range, i.e. number of Cols and number of Rows
Declaration
RangeDefinition Size { get; }
Property Value
Type | Description |
---|---|
Range |
Worksheet
The worksheet
Declaration
ExcelWorksheet Worksheet { get; }
Property Value
Type | Description |
---|---|
Excel |
Methods
GetNCells()
Get number of cells
Declaration
int GetNCells()
Returns
Type | Description |
---|---|
System. |
Number of cells |
GetOffset(Int32, Int32)
Gets
Declaration
object GetOffset(int rowOffset, int colOffset)
Parameters
Type | Name | Description |
---|---|---|
System. |
rowOffset | |
System. |
colOffset |
Returns
Type | Description |
---|---|
System. |
GetOffset(Int32, Int32, Int32, Int32)
Get a subrange
Declaration
IRangeInfo GetOffset(int rowOffsetStart, int colOffsetStart, int rowOffsetEnd, int colOffsetEnd)
Parameters
Type | Name | Description |
---|---|---|
System. |
rowOffsetStart | row start index from top left |
System. |
colOffsetStart | col start index from top left |
System. |
rowOffsetEnd | row end index from top left |
System. |
colOffsetEnd | col end index from top left |
Returns
Type | Description |
---|---|
IRange |
A new range with the requested cell data |
GetValue(Int32, Int32)
Get the value from a cell
Declaration
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)
Returns true if the cell is hidden
Declaration
bool IsHidden(int rowOffset, int colOffset)
Parameters
Type | Name | Description |
---|---|---|
System. |
rowOffset | |
System. |
colOffset |
Returns
Type | Description |
---|---|
System. |