LibreOffice
LibreOffice 24.2 SDK API Reference
|
An interface to a control that displays a tabular data. More...
import"XGridControl.idl";
Public Member Functions | |
long | getColumnAtPoint ([in] long X, [in] long Y) |
retrieves the column which a given point belongs to More... | |
long | getRowAtPoint ([in] long X, [in] long Y) |
retrieves the row which a given point belongs to More... | |
long | getCurrentColumn () |
returns the column index of the currently active cell More... | |
long | getCurrentRow () |
returns the row index of the currently active cell More... | |
void | goToCell ([in] long ColumnIndex, [in] long RowIndex) raises ( ::com::sun::star::lang::IndexOutOfBoundsException , ::com::sun::star::util::VetoException ) |
moves the cursor to the given cell More... | |
long getColumnAtPoint | ( | [in] long | X, |
[in] long | Y | ||
) |
retrieves the column which a given point belongs to
X | the ordinate of the point, in pixel coordinates. |
Y | the abscissa of the point, in pixel coordinates. |
long getCurrentColumn | ( | ) |
returns the column index of the currently active cell
If the grid control's does not contain any cells (which happens if the grid column model does not contain any columns, or if grid data model does not contain any rows), then -1
is returned.
long getCurrentRow | ( | ) |
returns the row index of the currently active cell
If the grid control's does not contain any cells (which happens if the grid column model does not contain any columns, or if grid data model does not contain any rows), then -1
is returned.
long getRowAtPoint | ( | [in] long | X, |
[in] long | Y | ||
) |
retrieves the row which a given point belongs to
X | the ordinate of the point, in pixel coordinates. |
Y | the abscissa of the point, in pixel coordinates. |
void goToCell | ( | [in] long | ColumnIndex, |
[in] long | RowIndex | ||
) | |||
raises | ( | ::com::sun::star::lang::IndexOutOfBoundsException , | |
::com::sun::star::util::VetoException | |||
) |
moves the cursor to the given cell
ColumnIndex | the column index of the cell to activate. |
RowIndex | the row index of the cell to activate. |
com::sun::star::lang::IndexOutOfBoundsException | if either ColumnIndex or RowIndex are out of range. |
com::sun::star::util::VetoException | if moving the cursor to another cell is vetoed. |