CommandSet.ProcessOnStatusPageSetupCommand Method
Determines whether the Page Setup command appears on the File menu. Called when the user clicks the File menu while the diagram is active.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Dichiarazione
Protected Overridable Sub ProcessOnStatusPageSetupCommand ( _
command As MenuCommand _
)
protected virtual void ProcessOnStatusPageSetupCommand(
MenuCommand command
)
protected:
virtual void ProcessOnStatusPageSetupCommand(
MenuCommand^ command
)
abstract ProcessOnStatusPageSetupCommand :
command:MenuCommand -> unit
override ProcessOnStatusPageSetupCommand :
command:MenuCommand -> unit
protected function ProcessOnStatusPageSetupCommand(
command : MenuCommand
)
Parameters
- command
Type: System.ComponentModel.Design.MenuCommand
Set the Visible and Enabled properties to determine whether the command appears on the menu.
Remarks
Called when the user clicks the File menu. To specify whether the command is visible and enabled on the menu, 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.