Interface IXLRangeAddress
public interface IXLRangeAddress
- Extension Methods
Properties
ColumnSpan
Gets the number of columns in the area covered by the range address.
int ColumnSpan { get; }
Property Value
FirstAddress
Gets or sets the first address in the range.
IXLAddress FirstAddress { get; }
Property Value
- IXLAddress
The first address.
IsValid
Gets or sets a value indicating whether this range is valid.
bool IsValid { get; }
Property Value
- bool
trueif this instance is valid; otherwise,false.
LastAddress
Gets or sets the last address in the range.
IXLAddress LastAddress { get; }
Property Value
- IXLAddress
The last address.
NumberOfCells
Gets the number of cells in the area covered by the range address.
int NumberOfCells { get; }
Property Value
RowSpan
Gets the number of rows in the area covered by the range address.
int RowSpan { get; }
Property Value
Worksheet
IXLWorksheet? Worksheet { get; }
Property Value
Methods
AsRange()
Allocates the current range address in the internal range repository and returns it
IXLRange? AsRange()
Returns
- IXLRange
Range of the address or null, if the range is not a valid address.
Contains(IXLAddress)
bool Contains(IXLAddress address)
Parameters
addressIXLAddress
Returns
Intersection(IXLRangeAddress)
Returns the intersection of this range address with another range address on the same worksheet.
IXLRangeAddress Intersection(IXLRangeAddress otherRangeAddress)
Parameters
otherRangeAddressIXLRangeAddressThe other range address.
Returns
- IXLRangeAddress
The intersection's range address
Intersects(IXLRangeAddress)
bool Intersects(IXLRangeAddress otherAddress)
Parameters
otherAddressIXLRangeAddress
Returns
IsEntireColumn()
Determines whether range address spans the entire column.
bool IsEntireColumn()
Returns
- bool
trueif is entire column; otherwise,false.
IsEntireRow()
Determines whether range address spans the entire row.
bool IsEntireRow()
Returns
- bool
trueif is entire row; otherwise,false.
IsEntireSheet()
Determines whether the range address spans the entire worksheet.
bool IsEntireSheet()
Returns
- bool
trueif is entire sheet; otherwise,false.
Relative(IXLRangeAddress, IXLRangeAddress)
Returns a range address so that its offset from the target base address is equal to the offset of the current range address to the source base address. For example, if the current range address is D4:E4, the source base address is A1:C3, then the relative address to the target base address B10:D13 is E14:F14
IXLRangeAddress Relative(IXLRangeAddress sourceRangeAddress, IXLRangeAddress targetRangeAddress)
Parameters
sourceRangeAddressIXLRangeAddressThe source base range address.
targetRangeAddressIXLRangeAddressThe target base range address.
Returns
- IXLRangeAddress
The relative range
ToString(XLReferenceStyle)
string ToString(XLReferenceStyle referenceStyle)
Parameters
referenceStyleXLReferenceStyle
Returns
ToString(XLReferenceStyle, bool)
string ToString(XLReferenceStyle referenceStyle, bool includeSheet)
Parameters
referenceStyleXLReferenceStyleincludeSheetbool
Returns
ToStringFixed()
string ToStringFixed()
Returns
ToStringFixed(XLReferenceStyle)
string ToStringFixed(XLReferenceStyle referenceStyle)
Parameters
referenceStyleXLReferenceStyle
Returns
ToStringFixed(XLReferenceStyle, bool)
string ToStringFixed(XLReferenceStyle referenceStyle, bool includeSheet)
Parameters
referenceStyleXLReferenceStyleincludeSheetbool
Returns
ToStringRelative()
string ToStringRelative()
Returns
ToStringRelative(bool)
string ToStringRelative(bool includeSheet)
Parameters
includeSheetbool