Share via


MasterShortcut Element

Visio XML Reference

Specifies a master shortcut defined in the document.

Syntax

  <MasterShortcut
    ID
    [Name]
    [NameU]
    [IconSize]
    [PatternFlags]
    [Prompt]
    [ShortcutURL]
    [ShortcutHelp]
    [AlignName]>
</MasterShortcut>

Attributes

ID

Required int. The unique ID of the element within its parent element.

Name

Optional string. The name of the element.

NameU

Optional string. The universal name of the element.

IconSize

Optional int. The size of the element's icon.

Value Description

1

Normal

2

Tall

3

Wide

4

Double

PatternFlags

Optional int. Determines whether a master behaves as a custom pattern.

Value Description

0

The master does not behave as a custom pattern.

Non-zero

The master behaves as a custom pattern.

If you can use the master as a pattern, the PatternFlags attribute can include a combination of the following hexadecimal values:

Value Description

1

Line pattern. If selected, the pattern mode should be one of the following values:

  • 0 (tile deform)
  • 10 (tile)
  • 20 (stretch)
  • 30 (annotate)

In addition, 40 (scale) can optionally be included.

2

Line end pattern. If selected, the pattern mode should be one of the following values:

  • 0 (default)
  • 100 (upright)

In addition, 400 (scale) can optionally be included.

4

Fill pattern. If selected, the pattern mode should be one of the following values:

  • 0 (tile)
  • 1000 (center)
  • 2000 (stretch)

In addition, 4000 (scale) can optionally be included.

Prompt

Optional string. The status bar and tool tip prompt for the element.

ShortcutURL

Optional string. A URL to a MasterShortcut element. If this attribute is present, this MasterShortcut element is a shortcut.

ShortcutHelp

Optional string. A help string for the element.

AlignName

Optional int. Specifies whether the element's text in the stencil window is aligned left, right, or center.

Value Description

1

Align text left.

2

Align text center.

3

Align text right.

Element properties

Property Value
Name MasterShortcut
Minimum Occurrences 0
Maximum Occurrences Unbounded

Element information

Parent elements

Masters

Child elements

Icon

See also

MasterShortcut object