Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StartOf Method
Collapse the table of content
Expand the table of content

Selection.StartOf Method

Moves or extends the start position of the specified selection to the beginning of the nearest specified text unit.

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

int StartOf(
	ref Object Unit,
	ref Object Extend
)

Parameters

Unit
Type: System.Object%
Optional WdUnits. The unit by which the start position of the specified range or selection is to be moved.
Extend
Type: System.Object%
Optional WdMovementType.

Return Value

Type: System.Int32

This method returns an Integer that indicates the number of characters by which the selection was moved or extended. The method returns a negative number if the movement is backward through the document.

If the beginning of the specified selection is already at the beginning of the specified unit, this method doesn't move or extend the selection.

Community Additions

ADD
Show:
© 2015 Microsoft