Delen via


ITextProvider2.GetCaretRange(Boolean) Method

Definition

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

public:
 ITextRangeProvider ^ GetCaretRange([Out] bool & isActive);
ITextRangeProvider GetCaretRange([Out] bool & isActive);
public ITextRangeProvider GetCaretRange(out bool isActive);
Public Function GetCaretRange (ByRef isActive As Boolean) As ITextRangeProvider

Parameters

isActive
Boolean

bool

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