Package com.independentsoft.office.odf
Class NamedRange
java.lang.Object
com.independentsoft.office.odf.NamedElement
com.independentsoft.office.odf.NamedRange
Represents a cell range that has a name assigned.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the NamedRange class.NamedRange(String name)Initializes a new instance of the NamedRange class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets an address of the base cell for relative addresses in formulas that occur within a condition.Gets an address of the named range.getName()Gets the name of a database range on which to perform operations.Specifies whether the name of the range can be used within the specification of a print range, a filter, a repeating row, or a repeat column.voidsetBaseCellAddress(String baseCellAddress)Sets an address of the base cell for relative addresses in formulas that occur within a condition.voidsetCellRangeAddress(String cellRangeAddress)Sets an address of the named range.voidSets the name of a database range on which to perform operations.voidsetRangeUsableAs(String rangeUsableAs)Specifies whether the name of the range can be used within the specification of a print range, a filter, a repeating row, or a repeat column.toString()Converts the value of the current NamedRange object to its equivalent string representation.
-
Constructor Details
-
NamedRange
public NamedRange()Initializes a new instance of the NamedRange class. -
NamedRange
Initializes a new instance of the NamedRange class.- Parameters:
name- the name
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein classNamedElement- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current NamedRange object to its equivalent string representation. -
getName
Gets the name of a database range on which to perform operations. Within a single document, only one database range may have no name.- Returns:
- the name
-
setName
Sets the name of a database range on which to perform operations. Within a single document, only one database range may have no name.- Parameters:
name- the new name
-
getCellRangeAddress
Gets an address of the named range. The address can be either absolute or relative.- Returns:
- the cell range address
-
setCellRangeAddress
Sets an address of the named range. The address can be either absolute or relative.- Parameters:
cellRangeAddress- the new cell range address
-
getBaseCellAddress
Gets an address of the base cell for relative addresses in formulas that occur within a condition. This attribute is only necessary when the condition contains a formula.- Returns:
- the base cell address
-
setBaseCellAddress
Sets an address of the base cell for relative addresses in formulas that occur within a condition. This attribute is only necessary when the condition contains a formula.- Parameters:
baseCellAddress- the new base cell address
-
getRangeUsableAs
Specifies whether the name of the range can be used within the specification of a print range, a filter, a repeating row, or a repeat column.- Returns:
- the range usable as
-
setRangeUsableAs
Specifies whether the name of the range can be used within the specification of a print range, a filter, a repeating row, or a repeat column.- Parameters:
rangeUsableAs- the new range usable as
-