Export (0) Print
Expand All

IVsTextView.SendExplicitFocus Method

Sends explicit focus to the window.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

int SendExplicitFocus ()
int SendExplicitFocus ()
function SendExplicitFocus () : int

Return Value

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

COM Signature

From textmgr.idl:

HRESULT IVsTextView::SendExplicitFocus();

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

Community Additions

© 2014 Microsoft