Edita

Comparteix a través de


TextPatternRange.RemoveFromSelection Method

Definition

Removes a highlighted section of text, corresponding to the calling text range Start and End endpoints, from an existing collection of highlighted text in a text container that supports multiple, disjoint selections.

public:
 void RemoveFromSelection();
public void RemoveFromSelection ();
member this.RemoveFromSelection : unit -> unit
Public Sub RemoveFromSelection ()

Exceptions

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

Remarks

The text insertion point will move to the area of the removed highlight.

Providing a degenerate text range will move the insertion point.

Applies to

See also