Edit

Share via


TextRange2.Characters[Int32, Int32] Property

Definition

Read-only.

public:
 property Microsoft::Office::Core::TextRange2 ^ Characters[int, int] { Microsoft::Office::Core::TextRange2 ^ get(int Start, int Length); };
public Microsoft.Office.Core.TextRange2 Characters[int Start = -1, int Length = -1] { get; }
member this.Characters(int * int) : Microsoft.Office.Core.TextRange2
Public ReadOnly Property Characters(Optional Start As Integer = -1, Optional Length As Integer = -1) As TextRange2

Parameters

Start
Int32

The first character in the returned range.

Length
Int32

The number of characters to be returned.

Property Value

TextRange2

Examples

This example sets the text for shape two on slide one in the active presentation and then makes the second character a subscript character with a 20-percent offset.

Remarks

If both Start and Length are omitted, the returned range starts with the first character and ends with the last paragraph in the specified range.

If Start is specified but Length is omitted, the returned range contains one character.

If Length is specified but Start is omitted, the returned range starts with the first character in the specified range.

If Start is greater than the number of characters in the specified text, the returned range starts with the last character in the specified range.

If Length is greater than the number of characters from the specified starting character to the end of the text, the returned range contains all those characters.

Applies to