Created
July 19, 2018 11:40
-
-
Save jcansdale/a86b0d29c2da730d9ffe503c6b34ed4d to your computer and use it in GitHub Desktop.
Find IVsCodeWindow associated with a IVsWindowFrame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IVsCodeWindow GetCodeWindow(this IVsWindowFrame windowFrame) | |
{ | |
ErrorHandler.ThrowOnFailure(windowFrame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out object docView)); | |
return docView as IVsCodeWindow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment