interface XPropertyContainer in module com::sun::star::beans::

(Global Index)

Syntax

interface XPropertyContainer : com::sun::star::uno::XInterface ;

Description

makes it possible to add and remove properties to or from an object.

Method Summary

addProperty adds a property to the object.

removeProperty removes a property from the object.

Method Details



addProperty

Syntax

void addProperty (
string Name,
short Attributes,
any DefaultValue )
raises ( com::sun::star::beans::PropertyExistException , com::sun::star::beans::IllegalTypeException , com::sun::star::lang::IllegalArgumentException );

Description

adds a property to the object.

Parameter aName

specifies the name of the new property.

Parameter xType

specifies the type of the new property.

Throws

PropertyExistException if a property with the same name already exists.

Throws

IllegalTypeException if the specified type is not allowed.

See also

PropertyAttribute

removeProperty

Syntax

void removeProperty (
string Name )
raises ( com::sun::star::beans::UnknownPropertyException , com::sun::star::beans::NotRemoveableException );

Description

removes a property from the object.

Parameter aName

specified the name of the property.

Throws

UnknownPropertyException if the property does not exist.
Top of Page