IVsToolWindowToolbar Interface

Gets the border size and sets the border space for a tool window. You should implement this interface to give information to the toolbar hosted inside the tool window about its hosting surface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface IVsToolWindowToolbar

The IVsToolWindowToolbar type exposes the following members.

Public methodGetBorderReturns the border information for a tool window.
Public methodSetBorderSpaceSets the border space for a tool window after the toolbar is placed.

The Visual Studio shell calls GetBorder(RECT[]) to find the available area for the toolbar. Then the shell calls SetBorderSpace(RECT[]) to set the available space after the toolbar is placed on the given surface so that users can place the other UI controls without overlapping the toolbar.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft