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

(Global Index)

Syntax

interface XNamedRanges : com::sun::star::container::XNameAccess ;

Description

represents a collection of named ranges.

See also

NamedRanges

Method Summary

addNewByName adds a new named range to the collection.

addNewFromTitles creates named ranges from titles in a cell range.

removeByName removes a named range from the collection.

outputList writes a list of all named ranges into the document.

Known Services Which Export this Interface

com::sun::star::sheet::NamedRanges

Method Details



addNewByName

Syntax

void addNewByName (
string aName,
string aContent,
com::sun::star::table::CellAddress aPosition,
long nType );

Description

adds a new named range to the collection.


addNewFromTitles

Syntax

void addNewFromTitles (
com::sun::star::table::CellRangeAddress aSource,
com::sun::star::sheet::Border aBorder );

Description

creates named ranges from titles in a cell range.

Names for the named ranges are taken from titles in the top or bottom row, or the left or right column of the range. The named ranges refer to single columns or rows in the inner part of the original range, excluding the labels.


removeByName

Syntax

void removeByName (
string aName );

Description

removes a named range from the collection.


outputList

Syntax

void outputList (
com::sun::star::table::CellAddress aOutputPosition );

Description

writes a list of all named ranges into the document.

The first column of the list contains the names. The second column contains the contents of the named ranges.

Top of Page