CommandSet.ProcessOnStatusPrintPreviewCommand Method

Determines whether the Print Preview command appears on the 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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable Sub ProcessOnStatusPrintPreviewCommand ( _
    command As MenuCommand _
)
protected virtual void ProcessOnStatusPrintPreviewCommand(
    MenuCommand command
)
protected:
virtual void ProcessOnStatusPrintPreviewCommand(
    MenuCommand^ command
)
abstract ProcessOnStatusPrintPreviewCommand : 
        command:MenuCommand -> unit  
override ProcessOnStatusPrintPreviewCommand : 
        command:MenuCommand -> unit
protected function ProcessOnStatusPrintPreviewCommand(
    command : MenuCommand
)

Parameters

Remarks

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

See Also

Reference

CommandSet Class

Microsoft.VisualStudio.Modeling.Shell Namespace