LibreOffice
LibreOffice 24.2 SDK API Reference
|
This is the generic interface for supporting the insertion and removal of indexed elements. More...
import <XIndexContainer.idl;
Public Member Functions | |
void | insertByIndex ([in] long Index, [in] any Element) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException ) |
inserts the given element at the specified index. | |
void | removeByIndex ([in] long Index) raises ( com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException ) |
removes the element at the specified index. | |
![]() | |
void | replaceByIndex ([in] long Index, [in] any Element) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException ) |
replaces the element at the specified index with the given element. | |
![]() | |
long | getCount () |
any | getByIndex ([in] long Index) raises ( com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException ) |
![]() | |
type | getElementType () |
boolean | hasElements () |
![]() | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. | |
This is the generic interface for supporting the insertion and removal of indexed elements.
void insertByIndex | ( | [in] long | Index, | |||
[in] any | Element ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
com::sun::star::lang::IndexOutOfBoundsException, | ||||||
com::sun::star::lang::WrappedTargetException ) |
inserts the given element at the specified index.
To append an element, use the index "last index +1".
void removeByIndex | ( | [in] long | Index | ) | ||
raises | ( | com::sun::star::lang::IndexOutOfBoundsException, | ||||
com::sun::star::lang::WrappedTargetException ) |
removes the element at the specified index.