ITextProvider2.GetCaretRange(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.