Partager via


DesignerWindowPane.CommandGuid Property

Gets the command UI GUID associated with this window pane.

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

Syntax

'Declaration
Public Overridable ReadOnly Property CommandGuid As Guid
public virtual Guid CommandGuid { get; }
public:
virtual property Guid CommandGuid {
    Guid get ();
}
abstract CommandGuid : Guid with get 
override CommandGuid : Guid with get
function get CommandGuid () : Guid

Property Value

Type: Guid
A GUID associated with this window pane.

Remarks

This property returns the command UI GUID to pass back to Visual Studio. This GUID is used by the Visual Studio command bars to determine which toolbars should become visible when the designer has focus. The default implementation of this property provides a way for both the root designer and the window pane to provide a GUID as follows:

If the root designer offers a GUID, then multiple designer window panes can be used to host many designers. To locate a GUID for the root designer, this property first asks the root designer for the IDictionaryService and tries to locate an entry for the CommandID. If this succeeds, the GUID will be taken from the CommandID’s Guid property.

If a command GUID could not be found on the root designer, this property will return the GUID of the window pane class itself.

.NET Framework Security

See Also

Reference

DesignerWindowPane Class

Microsoft.VisualStudio.Shell.Design Namespace

CommandID