TextBodySelection module

class TextBodySelection.TextBodySelection

Bases: SpireObject

Represents a selection within a text body.

property ItemEndIndex: int

Gets the index of the end paragraph in the text body.

Returns:

The index of the end paragraph in the text body.

Return type:

int

property ItemStartIndex: int

Gets the index of the start paragraph in the text body.

Returns:

The index of the start paragraph in the text body.

Return type:

int

property ParagraphItemEndIndex: int

Gets the index of the end paragraph item in the end paragraph.

Returns:

The index of the end paragraph item in the end paragraph.

Return type:

int

property ParagraphItemStartIndex: int

Gets the index of the start paragraph item in the start paragraph.

Returns:

The index of the start paragraph item in the start paragraph.

Return type:

int

property TextBody: Body

Gets the text body containing the selection.

Returns:

The text body containing the selection.

Return type:

Body