Partilhar via


CommandSet.ProcessOnStatusResetDecoratorSizeCommand Method

Determines whether the Reset Decorator Size command appears on the menu. Called when the user right-clicks over the diagram.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
Protected Overridable Sub ProcessOnStatusResetDecoratorSizeCommand ( _
    command As MenuCommand _
)
protected virtual void ProcessOnStatusResetDecoratorSizeCommand(
    MenuCommand command
)
protected:
virtual void ProcessOnStatusResetDecoratorSizeCommand(
    MenuCommand^ command
)
abstract ProcessOnStatusResetDecoratorSizeCommand : 
        command:MenuCommand -> unit 
override ProcessOnStatusResetDecoratorSizeCommand : 
        command:MenuCommand -> unit 
protected function ProcessOnStatusResetDecoratorSizeCommand(
    command : MenuCommand
)

Parameters

Remarks

The default behavior is that the command is visible and enabled when the user clicks a G136 label that does not have its automatic size. To modify this behavior, override this method and set the Visible and Enabled properties of the command parameter. You will normally want to use this.CurrentSelection to help you determine whether the menu command should appear.

.NET Framework Security

See Also

Reference

CommandSet Class

Microsoft.VisualStudio.Modeling.Shell Namespace