Class ExcelAddressBase¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
A range address
Inheritance¶
object ← ExcelCellBase ← ExcelAddressBase
Derived¶
ExcelAddress
ExcelFormulaAddress
Inherited Members¶
ExcelCellBase.GetAddress(int, bool, int, bool)
ExcelCellBase.GetAddress(int, int, bool)
ExcelCellBase.GetAddress(int, int, int, int, bool, bool, bool, bool)
ExcelCellBase.GetAddress(int, int, int, int, bool)
ExcelCellBase.GetAddress(int, int, int, int)
ExcelCellBase.GetAddress(int, int)
ExcelCellBase.GetAddressCol(int, bool)
ExcelCellBase.GetAddressRow(int, bool)
ExcelCellBase.GetColumnLetter(int, bool)
ExcelCellBase.GetColumnLetter(int)
ExcelCellBase.GetFullAddress(string, string, string)
ExcelCellBase.GetFullAddress(string, string)
ExcelCellBase.IsSimpleAddress(string)
ExcelCellBase.IsValidAddress(string)
ExcelCellBase.IsValidCellAddress(string)
ExcelCellBase.IsValidRangeAddress(string)
ExcelCellBase.IsValidTableAddress(string)
ExcelCellBase.TranslateFromR1C1(string, int, int)
ExcelCellBase.TranslateToR1C1(string, int, int)
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Remarks¶
Examples of addresses are "A1" "B1:C2" "A:A" "1:1" "A1:E2,G3:G5"
Constructors¶
ExcelAddressBase(int, int, int, int)¶
Creates an Address object
Parameters¶
fromRow int
start row
fromCol int
start column
toRow int
End row
toColumn int
End column
ExcelAddressBase(string, int, int, int, int)¶
Creates an Address object
Parameters¶
worksheetName string
Worksheet name
fromRow int
Start row
fromCol int
Start column
toRow int
End row
toColumn int
End column
ExcelAddressBase(int, string, int, int, int, int)¶
Creates an address object
public ExcelAddressBase(int externalReferenceIx, string worksheetName, int fromRow, int fromCol, int toRow, int toColumn)
Parameters¶
externalReferenceIx int
Index of an external reference
worksheetName string
Worksheet name
fromRow int
Start row
fromCol int
Start column
toRow int
End row
toColumn int
End column
ExcelAddressBase(List<ExcelAddressBase>)¶
Initializes a new instance of the ExcelAddressBase class by combining multiple addresses into a single, comma-separated address string.
Parameters¶
addresses List<ExcelAddressBase>
A list of ExcelAddressBase instances to be combined. Each address in the list will be concatenated into a single address string, separated by commas.
ExcelAddressBase(int, int, int, int, bool, bool, bool, bool)¶
Creates an Address object
public ExcelAddressBase(int fromRow, int fromCol, int toRow, int toColumn, bool fromRowFixed, bool fromColFixed, bool toRowFixed, bool toColFixed)
Parameters¶
fromRow int
Start row
fromCol int
Start column
toRow int
End row
toColumn int
End column
fromRowFixed bool
Start row fixed
fromColFixed bool
Start column fixed
toRowFixed bool
End row fixed
toColFixed bool
End column fixed
ExcelAddressBase(string, ExcelWorkbook, string)¶
Creates an Address object
Parameters¶
address string
The Excel Address
The workbook to verify any defined names from
wsName string
The name of the worksheet the address referes to
Remarks¶
Examples of addresses are "A1" "B1:C2" "A:A" "1:1" "A1:E2,G3:G5"
ExcelAddressBase(string, ExcelPackage, ExcelAddressBase)¶
Creates an Address object
Parameters¶
address string
The Excel Address
pck ExcelPackage
Reference to the package to find information about tables and names
referenceAddress ExcelAddressBase
The address
Remarks¶
Examples of addresses are "A1" "B1:C2" "A:A" "1:1" "A1:E2,G3:G5"
Properties¶
Address¶
The address for the range
Property Value¶
AddressAbsolute¶
The \(absolute\) address
Property Value¶
Columns¶
Number of columns int the address
Property Value¶
End¶
Gets the row and column of the bottom right cell.
Property Value¶
ExternalReferenceIndex¶
The index to the external reference. Return 0, the current workbook, if no reference exists.
Property Value¶
FullAddress¶
The full address including the worksheet
Property Value¶
IsExternal¶
Returns true the address contains an external reference
Property Value¶
IsFullColumn¶
Returns true if the range spans a full column
Property Value¶
IsFullRow¶
Returns true if the range spans a full row
Property Value¶
IsName¶
If the address is a defined name
Property Value¶
LocalAddress¶
The address without the workbook or worksheet reference
Property Value¶
Rows¶
Number of rows int the address
Property Value¶
Start¶
Gets the row and column of the top left cell.
Property Value¶
Table¶
If the address is refering a table, this property contains additional information
Property Value¶
Methods¶
BeforeChangeAddress(string)¶
Method for actions that must be taken before address is changed
Parameters¶
value string
ChangeAddress(string)¶
Called when the address changes
Parameters¶
value string
Equals(object)¶
Returns true if the item is equal to another item.
Parameters¶
obj object
The item to compare
Returns¶
True if the items are equal
GetHashCode()¶
Serves as the default hash function.
Returns¶
A hash code for the current object.
SetAddress(string, ExcelWorkbook, string)¶
Sets the address
Parameters¶
address string
The address
wsName string
ToString()¶
Returns the address text
Returns¶
Validate()¶
Validate the address