Range.Expand Method

Expands the specified range.

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

Syntax

'Declaration
Function Expand ( _
    ByRef Unit As Object _
) As Integer
'Usage
Dim instance As Range
Dim Unit As Object
Dim returnValue As Integer

returnValue = instance.Expand(Unit)
int Expand(
    ref Object Unit
)

Parameters

  • Unit
    Type: System.Object%
    Optional Object. The unit by which to expand the range. Can be one of the WdUnits constants.

Return Value

Type: System.Int32

Remarks

This property returns the number of characters added to the range.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace