IVsTextView.SendExplicitFocus Method

Definition

Sends explicit focus to the window.

C++/CX
public:
 int SendExplicitFocus();

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

cpp#
HRESULT IVsTextView::SendExplicitFocus();  

This method sends the GimmeFocus message directly so it is handled immediately.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022