Export (0) Print
Expand All
Expand Minimize

Selection.HomeKey Method

Moves or extends the selection to the beginning of the specified unit.

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

int HomeKey(
	ref Object Unit,
	ref Object Extend
)

Parameters

Unit
Type: System.Object%
Optional Object. The unit by which the selection is to be moved or extended. WdUnits.
Extend
Type: System.Object%
Optional Object. Specifies the way the selection is moved. WdMovementType.

Return Value

Type: System.Int32

This method corresponds to functionality of the HOME key.

This method returns an integer that indicates the number of characters the selection was actually moved, or it returns 0 (zero) if the move was unsuccessful.

Community Additions

ADD
Show:
© 2014 Microsoft