Search code examples
c#visual-studiovisual-studio-2019visual-studio-sdk

Does the Visual Studio SDK provide a way to determine the pin status of an open document?


I know of the existence of the Running Document Table and how to access it using the Visual Studio SDK, but I can't seem to find a way to determine UX-specific attributes about the file, like if it's pinned in the editor.


Solution

  • Maybe you can try and get the IsPinned state using GetProperty and VsFramePropIdenum.

    https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.shell.vsframepropid?view=visualstudiosdk-2019