#include "NOTextSelection.h"
Public Member Functions | |
UInt32 | getNumberOfSelections () |
void | getSelection (UInt32 pIndex, UInt32 &pId, doubleMatrix &pMatrix, doubleRect &pRect) |
NiXPSObjects::NOString | getSelectedTextPart (UInt32 pIndex) |
UInt32 NiXPSObjects::NOTextSelection::getNumberOfSelections | ( | ) |
The number of text selections currently active.
Set the selection to a given id with a matrix and a rectangle
pId | The id of the text object to set selected | |
pMatrix | The matrix that is relevant to the text selection. You get this matrix from getSelection | |
pRect | The rectangle that is relevant to the text selection. You get this rectangle from getSelection void setSelection(UInt32 pId, doubleMatrix pMatrix, doubleRect pRect); |
void NiXPSObjects::NOTextSelection::getSelection | ( | UInt32 | pIndex, | |
UInt32 & | pId, | |||
doubleMatrix & | pMatrix, | |||
doubleRect & | pRect | |||
) |
Get selection with index pIndex
pIndex | The index of the selection to get | |
pId | on return will contain the ID of the selected object | |
pMatrix | The matrix of the relevant part of the selection | |
pRect | The rectangle of the relevant part of the selection |
NiXPSObjects::NOString NiXPSObjects::NOTextSelection::getSelectedTextPart | ( | UInt32 | pIndex | ) |
Returns the part of the text that is selected as a UTF-8 encoded string
pIndex | The index of the selection to get |