interface XNamedRange in module com::sun::star::sheet::

(Global Index)

Syntax

interface XNamedRange : com::sun::star::container::XNamed ;

Description

represents a named range.

See also

NamedRange

Method Summary

getContent returns the content of the named range.

setContent sets the content of the named range.

getReferencePosition returns the position in the document which is used as a base for relative references in the content.

setReferencePosition sets the position in the document which is used as a base for relative references in the content.

getType returns the type of the named range.

setType sets the type of the named range.

Known Services Which Export this Interface

com::sun::star::sheet::NamedRange

Method Details



getContent

Syntax

string getContent ();

Description

returns the content of the named range.

The content can be a reference to a cell or cell range or any formula.


setContent

Syntax

void setContent (
string aContent );

Description

sets the content of the named range.

The content can be a reference to a cell or cell range or any formula.


getReferencePosition

Syntax

com::sun::star::table::CellAddress getReferencePosition ();

Description

returns the position in the document which is used as a base for relative references in the content.


setReferencePosition

Syntax

void setReferencePosition (
com::sun::star::table::CellAddress aReferencePosition );

Description

sets the position in the document which is used as a base for relative references in the content.


getType

Syntax

long getType ();

Description

returns the type of the named range.


setType

Syntax

void setType (
long nType );

Description

sets the type of the named range.

The type must be 0 or a combination of the NamedRangeFlag constants and controls if the named range is listed in dialogs prompting for special ranges.

Top of Page