Class RangeInfo
- Namespace
- OfficeOpenXml.FormulaParsing.Ranges
- Assembly
- EPPlus.dll
EPPlus implementation of the IRangeInfo interface
public class RangeInfo : IRangeInfo, IAddressInfo, IEnumerator<ICellInfo>, IEnumerator, IDisposable, IEnumerable<ICellInfo>, IEnumerable
- Inheritance
-
RangeInfo
- Implements
- Inherited Members
Constructors
RangeInfo(ExcelWorksheet, ExcelAddressBase, ParsingContext)
Constructor
public RangeInfo(ExcelWorksheet ws, ExcelAddressBase address, ParsingContext ctx = null)
Parameters
ws
ExcelWorksheetaddress
ExcelAddressBasectx
ParsingContextParsing context
RangeInfo(ExcelWorksheet, ParsingContext)
public RangeInfo(ExcelWorksheet ws, ParsingContext ctx)
Parameters
ws
ExcelWorksheetThe worksheet
ctx
ParsingContextParsing context
RangeInfo(ExcelWorksheet, int, int, int, int, ParsingContext, int)
Constructor
public RangeInfo(ExcelWorksheet ws, int fromRow, int fromCol, int toRow, int toCol, ParsingContext ctx, int extRef = -1)
Parameters
ws
ExcelWorksheetThe worksheet
fromRow
intfromCol
inttoRow
inttoCol
intctx
ParsingContextParsing context
extRef
intExternal reference id
RangeInfo(FormulaRangeAddress)
Constructor
public RangeInfo(FormulaRangeAddress address)
Parameters
address
FormulaRangeAddress
Properties
Address
Address of the range
public FormulaRangeAddress Address { get; }
Property Value
Current
Current cell
public ICellInfo Current { get; }
Property Value
Dimension
Dimension
public FormulaRangeAddress Dimension { get; }
Property Value
IsEmpty
Returns true if the range is empty
public bool IsEmpty { get; }
Property Value
IsInMemoryRange
Returns true if the range is an InMemoryRange
public bool IsInMemoryRange { get; }
Property Value
IsMulti
Returns true if more than one cell
public bool IsMulti { get; }
Property Value
IsRef
Returns true if the range represents an invalid reference
public bool IsRef { get; }
Property Value
Size
Size of the range
public RangeDefinition Size { get; }
Property Value
Worksheet
The worksheet
public ExcelWorksheet Worksheet { get; }
Property Value
Methods
Dispose()
Runs at dispose of this instance
public void Dispose()
GetEnumerator()
Returns enumerator for cells
public IEnumerator<ICellInfo> GetEnumerator()
Returns
GetNCells()
The total number of cells (including empty) of the range
public int GetNCells()
Returns
GetOffset(int, int)
Return value by offset
public object GetOffset(int rowOffset, int colOffset)
Parameters
Returns
GetOffset(int, int, int, int)
Returns a subrange
public IRangeInfo GetOffset(int rowOffsetStart, int colOffsetStart, int rowOffsetEnd, int colOffsetEnd)
Parameters
Returns
GetValue(int, int)
Returns the cell value by 0-based index
public object GetValue(int row, int col)
Parameters
Returns
- object
Cell value
IsHidden(int, int)
Is hidden
public bool IsHidden(int rowOffset, int colOffset)
Parameters
Returns
MoveNext()
Moves to next cell
public bool MoveNext()
Returns
NextCell()
Moves to next cell
public bool NextCell()
Returns
Reset()
public void Reset()