ITextProvider2.GetCaretRange(Boolean) Method

Definition

Retrieves a zero-length text range at the location of the caret that belongs to the text-based control.

C#
public ITextRangeProvider GetCaretRange(out bool isActive);

Parameters

isActive
Boolean

true if the text-based control that contains the caret has keyboard focus; otherwise, false.

Returns

A text range that represents the current location of the caret that belongs to the text-based control.

Applies to

Produkt Versiounen
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6