編輯

共用方式為


ITextRangeProvider.AddToSelection Method

Definition

Adds to the collection of highlighted text in a text container that supports multiple, disjoint selections.

public:
 void AddToSelection();
public void AddToSelection ();
abstract member AddToSelection : unit -> unit
Public Sub AddToSelection ()

Exceptions

If text provider does not support multiple, disjoint selections (that is, SupportedTextSelection must have a value of Multiple).

Remarks

The text insertion point moves to the area of the new selection.

Providing a degenerate text range moves the insertion point.

Applies to