Class InMemoryRange¶
Namespace: OfficeOpenXml.FormulaParsing.Ranges
Assembly: EPPlus.dll
EPPlus implementation of a range that keeps its data in memory
public class InMemoryRange : 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¶
InMemoryRange(RangeDefinition)¶
The constructor
Parameters¶
rangeDef RangeDefinition
Defines the size of the range
InMemoryRange(FormulaRangeAddress, RangeDefinition)¶
The constructor
Parameters¶
address FormulaRangeAddress
The worksheet address that should be used for this range. Will be used for implicit intersection.
rangeDef RangeDefinition
Defines the size of the range
InMemoryRange(List<List<object>>)¶
Constructor
Parameters¶
A list of values also defining the size of the range
InMemoryRange(IRangeInfo)¶
Constructor
Parameters¶
ri IRangeInfo
Another IRangeInfo used as clone for this range. The address of the supplied range will not be copied.
InMemoryRange(int, short)¶
Constructor
Parameters¶
rows int
Number of rows in the new range
cols short
Number of columns in the new range
Properties¶
Address¶
The address of the inmemory range.
Property Value¶
Addresses¶
The addresses for the range, if more than one.
Property Value¶
Current¶
Current
Property Value¶
Dimension¶
The address of the range
Property Value¶
Empty¶
An empty range
Property Value¶
IsEmpty¶
If the range has no cells.
Property Value¶
IsInMemoryRange¶
If the range is an inmemory range. Allways true.
Property Value¶
IsMulti¶
If the range is more than one cell.
Property Value¶
IsRef¶
The in-memory range is never a reference error. Allways false.
Property Value¶
Size¶
The size of the range.
Property Value¶
Worksheet¶
The worksheet.
Property Value¶
Methods¶
Dispose()¶
Dispose
GetCell(int, int)¶
Get cell
Parameters¶
row int
col int
Returns¶
GetEnumerator()¶
Get enumerator
Returns¶
GetNCells()¶
Get the number of cells in the range
Returns¶
The number of cells in range.
GetOffset(int, int)¶
Returns the value with the offset from the top-left cell.
Parameters¶
rowOffset int
The row offset from the top-left cell.
colOffset int
The column offset from the top-left cell.
Returns¶
The value of the cell
GetOffset(int, int, int, int)¶
Returns the value with the offset from the top-left cell.
public IRangeInfo GetOffset(int rowOffsetStart, int colOffsetStart, int rowOffsetEnd, int colOffsetEnd)
Parameters¶
rowOffsetStart int
The starting row offset from the top-left cell.
colOffsetStart int
The ending column offset from the top-left cell
rowOffsetEnd int
The ending row offset from the top-left cell.
colOffsetEnd int
The starting column offset from the top-left cell.
Returns¶
The value of the cell
GetValue(int, int)¶
Gets the value of a cell.
Parameters¶
row int
The row
col int
The column
Returns¶
IsHidden(int, int)¶
If the cell's row is hidden.
Parameters¶
rowOffset int
Row offset from the top-left cell
colOffset int
Column offset from the top-left cell
Returns¶
MoveNext()¶
Move next
Returns¶
Reset()¶
Reset
SetCell(int, int, ICellInfo)¶
Sets the ICellInfo for a cell directly
Parameters¶
row int
The row
col int
The column
cell ICellInfo
The cell
SetValue(int, int, object)¶
Sets the value for a cell.
Parameters¶
row int
The row
col int
The column
val object
The value to set