共用方式為


VisRibbonXModes Enumeration

Specifies constants that identify the various modes in which to display the custom UI; constant passed to the RegisterRibbonX method.

Version Information

Version Added: Visio 2010

Name

Value

Description

visRXModeNone

0

Display the custom user interface (UI) when no document is active.

visRXModeDrawing

1

Display the custom UI in Drawing mode.

visRXModeStencil

2

Display the custom UI in Stencil mode.

visRXModePrintPreview

4

Display the custom UI in Print Preview mode.