Document.MasterShortcuts Property
Visio Automation Reference |
Returns the MasterShortcuts collection for a document stencil. Read-only.
Version Information
Version Added: Visio 2000
Syntax
expression.MasterShortcuts
expression A variable that represents a Document object.
Return Value
MasterShortcuts
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the MasterShortcuts property to get the collection of master shortcuts in a document stencil.
Before running this example, replace the reference to StencilWithShortucts.vss with a reference to a valid .vss file that contains master shortcuts.
To create a stencil that contains master shortcuts:
- Open an existing stencil. (On the File menu, point to Shapes, point to a solution folder, and then click a stencil.)
- Right-click a master in the stencil and click Copy.
- Create a new stencil. (On the File menu, point to Shapes, and then click New Stencil (US Units) or New Stencil (Metric).)
- Right-click the new stencil and click Paste Shortcut.
- Save the new stencil. (Right-click its title bar and click Save.)
In the following code, replace StencilWithShortcuts.vss with the name of your new stencil.
Visual Basic for Applications |
---|
|
See Also