Interface IXLNamedRange
public interface IXLNamedRange
- Extension Methods
Properties
Comment
Gets or sets the comment for this named range.
string Comment { get; set; }
Property Value
- string
The comment for this named range.
IsValid
Checks if the named range contains invalid references (#REF!).
bool IsValid { get; }
Property Value
Name
Gets or sets the name of the range.
string Name { get; set; }
Property Value
- string
The name of the range.
Ranges
Gets the ranges associated with this named range.
Note: A named range can point to multiple ranges.
IXLRanges Ranges { get; }
Property Value
RefersTo
string RefersTo { get; set; }
Property Value
Scope
Gets the scope of this named range.
XLNamedRangeScope Scope { get; }
Property Value
Visible
Gets or sets the visibility of this named range.
bool Visible { get; set; }
Property Value
- bool
trueif visible; otherwise,false.
Methods
Add(IXLRange)
Adds the specified range to this named range.
Note: A named range can point to multiple ranges.
IXLRanges Add(IXLRange range)
Parameters
rangeIXLRangeThe range to add.
Returns
Add(IXLRanges)
Adds the specified ranges to this named range.
Note: A named range can point to multiple ranges.
IXLRanges Add(IXLRanges ranges)
Parameters
rangesIXLRangesThe ranges to add.
Returns
Add(XLWorkbook, string)
Adds the specified range to this named range.
Note: A named range can point to multiple ranges.
IXLRanges Add(XLWorkbook workbook, string rangeAddress)
Parameters
workbookXLWorkbookWorkbook containing the range
rangeAddressstringThe range address to add.
Returns
Clear()
Clears the list of ranges associated with this named range.
(it does not clear the cells)
void Clear()
CopyTo(IXLWorksheet)
IXLNamedRange CopyTo(IXLWorksheet targetSheet)
Parameters
targetSheetIXLWorksheet
Returns
Delete()
Deletes this named range (not the cells).
void Delete()
Remove(IXLRange)
Removes the specified range from this named range.
Note: A named range can point to multiple ranges.
void Remove(IXLRange range)
Parameters
rangeIXLRangeThe range to remove.
Remove(IXLRanges)
Removes the specified ranges from this named range.
Note: A named range can point to multiple ranges.
void Remove(IXLRanges ranges)
Parameters
rangesIXLRangesThe ranges to remove.
Remove(string)
Removes the specified range from this named range.
Note: A named range can point to multiple ranges.
void Remove(string rangeAddress)
Parameters
rangeAddressstringThe range address to remove.
SetRefersTo(IXLRangeBase)
IXLNamedRange SetRefersTo(IXLRangeBase range)
Parameters
rangeIXLRangeBase
Returns
SetRefersTo(IXLRanges)
IXLNamedRange SetRefersTo(IXLRanges ranges)
Parameters
rangesIXLRanges
Returns
SetRefersTo(string)
IXLNamedRange SetRefersTo(string range)
Parameters
rangestring