Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 1.52 KB

Office.TextRange2.Words.md

File metadata and controls

54 lines (29 loc) · 1.52 KB
title api_name ms.assetid ms.date ms.localizationpriority
TextRange2.Words property (Office)
Office.TextRange2.Words
bab78b31-ebd6-649e-0b05-5b21552f8f22
01/25/2019
medium

TextRange2.Words property (Office)

Gets a TextRange2 object that represents the specified subset of text words. Read-only.

Syntax

expression.Words (Start, Length)

expression An expression that returns a TextRange2 object.

Parameters

Name Required/Optional Data type Description
Start Optional Long The first word in the returned range.
Length Optional Long The number of words to be returned.

Return 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.

See also

[!includeSupport and feedback]