PowerPoint.Interfaces.TextRangeData interface

An interface describing the data returned by calling textRange.toJSON().

Properties

length

Gets or sets the length of the range that this TextRange represents. Throws an InvalidArgument exception when set with a negative value or if the value is greater than the length of the available text from the starting point.

start

Gets or sets zero-based index, relative to the parent text frame, for the starting position of the range that this TextRange represents. Throws an InvalidArgument exception when set with a negative value or if the value is greater than the length of the text.

text

Represents the plain text content of the text range.

Property Details

length

Gets or sets the length of the range that this TextRange represents. Throws an InvalidArgument exception when set with a negative value or if the value is greater than the length of the available text from the starting point.

length?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.5 ]

start

Gets or sets zero-based index, relative to the parent text frame, for the starting position of the range that this TextRange represents. Throws an InvalidArgument exception when set with a negative value or if the value is greater than the length of the text.

start?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.5 ]

text

Represents the plain text content of the text range.

text?: string;

Property Value

string

Remarks

[ API set: PowerPointApi 1.4 ]