CommandExtensionAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
MefMetadata wrapper Attribute that declaratively declares the Command Group and position of a Command Extension in the Context Menu for a Dsl.
public ref class CommandExtensionAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class CommandExtensionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type CommandExtensionAttribute = class
inherit Attribute
Public NotInheritable Class CommandExtensionAttribute
Inherits Attribute
- Inheritance
-
CommandExtensionAttribute
- Attributes
Examples
[CommandExtensionOrder(Group = "FabrikamTech.Designers.DesignerName_FOO.ClipboardGroup, 2", Position = 3)]
Constructors
CommandExtensionAttribute() |
Fields
GroupKey | |
MenuPlaceholderIdKey | |
PositionKey |
Properties
Group |
Specifies the CommandGroup to which the command extension belongs. |
MenuPlaceholderId |
The Vsct Dynamic StartId in which CommandExtension must be placed. |
Position |
Specifies the IntraGroup position, if Group property is set. Specifies InterGroup position of CommandExtension, otherwise. |