Partager via


ToolWindowOrientation Enumeration

This enumeration provides a number of possible tool window orientations with respect to a docking window.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Public Enumeration ToolWindowOrientation
'Utilisation
Dim instance As ToolWindowOrientation
public enum ToolWindowOrientation
public enum class ToolWindowOrientation
type ToolWindowOrientation
public enum ToolWindowOrientation

Members

Member name Description
none No tool window orientation indicated.
Top Tool window initially oriented against the top of the docking window.
Left Tool window initially oriented to the left of the docking window.
Right Tool window initially oriented to the right of the docking window.
Bottom Tool window initially oriented against the bottom of the docking window.

Remarks

This is a parameter of the attribute of ProvideToolWindowAttribute which is applied to subclasses of Package or classes that implement IVsPackage.

Examples

This demonstrates the use of the value ToolWindowOrientation.Left in a ProvideToolWindowAttribute. See VsDockStyle for a description of docking styles.

[ProvideToolWindow(typeof(TestManagerToolWindowHost),
        Orientation = ToolWindowOrientation.Left,
        Style = VsDockStyle.MDI,
        PositionX = 200,
        PositionY = 200,
        Width = 630,
        Height = 500,
        Window = "{F08466EC-20E5-3D77-49AC-6EC38954C9DF}")]

See Also

Reference

Microsoft.VisualStudio.Shell Namespace

Other Resources

Tool Window Essentials

Registering Tool Windows