Edit

Bagikan melalui


ITextRangeProvider.RemoveFromSelection Method

Definition

Removes a highlighted section of text, corresponding to the caller's Start and End endpoints, from the collection of highlighted text in a text container that supports multiple, disjoint selections.

public:
 void RemoveFromSelection();
public void RemoveFromSelection ();
abstract member 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