Modifica

Condividi tramite


TextRange2.Words[Int32, Int32] Property

Definition

Gets the specified subset of text words. Read-only.

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

Parameters

Start
Int32

The first word in the returned range.

Length
Int32

The number of words to be returned.

Property Value

TextRange2

Remarks

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

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

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

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

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

Applies to