TextRange module

class TextRange.TextRange

Bases: ParagraphBase, ITextRange

Represents a text range in a document.

property CharacterFormat: CharacterFormat

Gets the character format.

Returns:

The character format.

property DocumentObjectType: DocumentObjectType

Gets the type of the document object.

Returns:

The type of the document object.

property Text: str

Gets or sets the text.

Returns:

The text.