LibreOffice
LibreOffice 25.2 SDK API Reference
Public Member Functions | List of all members
XIndexAccess Interface Referencepublished

provides access to the elements of a collection through an index. More...

import"XIndexAccess.idl";

Inherits XElementAccess.

Inherited by GridControl, XFormController, XFunctionCategory, XFunctionManager, DefinitionContainer, Container, CellAreaLinks, CellFormatRanges, DatabaseRanges, DataPilotFieldGroup, DataPilotFieldGroups, DataPilotFields, DataPilotItems, DataPilotTables, DDELinks, LabelRanges, NamedRanges, Scenarios, SheetLinks, Spreadsheets, SpreadsheetView, SubTotalDescriptor, TableAutoFormat, TableAutoFormats, TableConditionalFormat, UniqueCellFormatRanges, XExternalDocLink, XExternalDocLinks, StyleFamilies [protected], StyleFamily [protected], XAutoStyles, TableCharts, AutoTextGroup, Bookmarks, DocumentIndexes, Footnotes, ReferenceMarks, TextEmbeddedObjects, TextFrames, TextGraphicObjects, TextRanges, TextSections, TextTables, XAutoTextContainer2, UIElementSettings, XDecks, XPanels, XIndexReplace, XDrawPages, XLayerManager, XShapes, XFrames, XGalleryTheme, XAreaLinks, XConditionalFormat, XFunctionDescriptions, XLabelRanges, XSheetAnnotations, XSheetCellRanges, XSheetConditionalEntries, XTableColumns, and XTableRows.

Collaboration diagram for XIndexAccess:
Collaboration graph
[legend]

Public Member Functions

long getCount ()
 
any getByIndex ([in] long Index) raises ( com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::WrappedTargetException )
 
- Public Member Functions inherited from XElementAccess
type getElementType ()
 
boolean hasElements ()
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

provides access to the elements of a collection through an index.

This interface should only be used if the data structure, itself, is indexed.

Developers Guide
Professional UNO - Collections and Containers

Member Function Documentation

◆ getByIndex()

Returns
the element at the specified index.
Parameters
Indexspecifies the position in the array. The first index is 0.
Exceptions
com::sun::star::lang::IndexOutOfBoundsExceptionif the index is not valid.
com::sun::star::lang::WrappedTargetExceptionIf the implementation has internal reasons for exceptions, then wrap these in a com::sun::star::lang::WrappedTargetException exception.

◆ getCount()

long getCount ( )
Returns
the number of elements in this container.

The documentation for this interface was generated from the following file: