Edit

Share via


Selection.Extend(Object) Method

Definition

Turns extend mode on, or extends the selection to the next larger unit of text if Extend mode is already on.

public void Extend (ref object Character);
abstract member Extend : obj -> unit
Public Sub Extend (Optional ByRef Character As Object)

Parameters

Character
Object

Optional Object. The character through which the selection is extended. This argument is case-sensitive and must evaluate to a String or an error occurs. Also, if the value of this argument is longer than a single character, Microsoft Word ignores the command entirely.

Remarks

The Extend method sets the ExtendMode property to True,

The progression of selected units of text is as follows: word, sentence, paragraph, section, entire document. If Character is specified, extends the selection forward through the next instance of the specified character. The selection is extended by moving the active end of the selection.

Applies to