TextRange.Words Method

Returns a TextRange object that represents the specified subset of text words.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function Words ( _
    Start As Integer, _
    Length As Integer _
) As TextRange
'Usage
Dim instance As TextRange
Dim Start As Integer
Dim Length As Integer
Dim returnValue As TextRange

returnValue = instance.Words(Start, Length)
TextRange Words(
    int Start,
    int Length
)

Parameters

  • Start
    Type: System.Int32
    The first word in the returned range.
  • Length
    Type: System.Int32
    The number of words to be returned.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.TextRange

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.

For information about counting or looping through the words in a text range, see the TextRange object.

See Also

Reference

TextRange Interface

TextRange Members

Microsoft.Office.Interop.PowerPoint Namespace