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¶
Implements¶
IAddressInfo
IDisposable
IEnumerable
IEnumerable<ICellInfo>
IEnumerator
IEnumerator<ICellInfo>
IRangeInfo
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
RangeInfo(FormulaRangeAddress)¶
Constructor
Parameters¶
address FormulaRangeAddress
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¶
The worksheet
fromRow int
fromCol int
toRow int
toCol int
ctx ParsingContext
Parsing context
extRef int
External reference id
RangeInfo(ExcelWorksheet, ParsingContext)¶
Parameters¶
The worksheet
ctx ParsingContext
Parsing context
RangeInfo(ExcelWorksheet, ExcelAddressBase, ParsingContext)¶
Constructor
Parameters¶
address ExcelAddressBase
ctx ParsingContext
Parsing context
Properties¶
Address¶
The first address of the range
Property Value¶
Addresses¶
If the address contains more the one address (i.e A1:A2,A4), this array contains all addresses
Property Value¶
Current¶
Current cell
Property Value¶
Dimension¶
Dimension
Property Value¶
IsEmpty¶
Returns true if the range is empty
Property Value¶
IsInMemoryRange¶
Returns true if the range is an InMemoryRange
Property Value¶
IsMulti¶
Returns true if more than one cell
Property Value¶
IsRef¶
Returns true if the range represents an invalid reference
Property Value¶
Size¶
Size of the range
Property Value¶
Worksheet¶
The worksheet
Property Value¶
Methods¶
Dispose()¶
Runs at dispose of this instance
GetAddressDimensionAdjusted(int)¶
Get the address adjusted inside the dimension of the worksheet.
Parameters¶
index int
The index of the address.
Returns¶
The address adjusted within the dimension of the worksheet.
GetEnumerator()¶
Returns enumerator for cells
Returns¶
GetNCells()¶
The total number of cells (including empty) of the range
Returns¶
GetOffset(int, int)¶
Return value by offset
Parameters¶
rowOffset int
colOffset int
Returns¶
GetOffset(int, int, int, int)¶
Returns a subrange
public IRangeInfo GetOffset(int rowOffsetStart, int colOffsetStart, int rowOffsetEnd, int colOffsetEnd)
Parameters¶
rowOffsetStart int
colOffsetStart int
rowOffsetEnd int
colOffsetEnd int
Returns¶
GetRangeInfoByValue()¶
Gets the IRangeInfo for the range for the first and last value in the range (top-left to bottom-right)
Returns¶
The range
GetValue(int, int)¶
Returns the cell value by 0-based index
Parameters¶
row int
0-based row index
col int
0-based col index
Returns¶
Cell value
IsHidden(int, int)¶
Is hidden
Parameters¶
rowOffset int
colOffset int
Returns¶
MoveNext()¶
Moves to next cell
Returns¶
NextCell()¶
Moves to next cell