IVsTextView.SendExplicitFocus Method
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.
Sends explicit focus to the window.
public:
int SendExplicitFocus();
C++/CX
public:
int SendExplicitFocus();
int SendExplicitFocus();
public int SendExplicitFocus();
abstract member SendExplicitFocus : unit -> int
Public Function SendExplicitFocus () As Integer
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextView::SendExplicitFocus();
This method sends the GimmeFocus message directly so it is handled immediately.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |