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

(Global Index)

Syntax

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

Description

provides a fast way of accessing and changing property values.

This interface is an extension to the XPropertySet interface. The get and set methods use handles to access the property values instead of character strings.

Method Summary

setFastPropertyValue sets the value to the property with the specified name.

getFastPropertyValue

Method Details



setFastPropertyValue

Syntax

void setFastPropertyValue (
long nHandle,
any aValue )
raises ( com::sun::star::beans::UnknownPropertyException , com::sun::star::beans::PropertyVetoException , com::sun::star::lang::IllegalArgumentException , com::sun::star::lang::WrappedTargetException );

Description

sets the value to the property with the specified name.

Parameter nHandle

constains the implementation handle of the implementation for the property.

Parameter aValue

constains the new value of the property.

Throws

UnknownPropertyException if the property does not exist.

Throws

PropertyVetoException if a vetoable listener does not approve the change of a property value.

Throws

IllegalArgumentException if the new value cannot be converted to the type of the underlying property by an identity or widening conversion.

Throws

stardiv::uno::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into this WrappedTargetException .

getFastPropertyValue

Syntax

any getFastPropertyValue (
long nHandle )
raises ( com::sun::star::beans::UnknownPropertyException , com::sun::star::lang::WrappedTargetException );

Description

Returns

the value of the property with the name PropertyName.

Parameter nHandle

contains the implementation handle of the implementation for the property.

Throws

UnknownPropertyException if the property does not exist.

Throws

com::sun::star::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into that WrappedTargetException .
Top of Page