Share via


Selection.Expand Method

Expands the specified selection.

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 Selection
Dim Unit As Object
Dim returnValue As Integer

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

Parameters

Return Value

Type: System.Int32

Remarks

This method returns the number of characters added to the selection.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace