TextRange2.Words[Int32, Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.