Share via


Act Element [Visio 2003 SDK Documentation]

Defines custom command names that appear on an object's shortcut menu and specifies the actions that the commands take.

Syntax

<Act
    [Name]
    [NameU]
    [Del]
    [ID]
    [IX]>
</Act>

Attributes

Name

Optional string. The name of the element.

NameU

Optional string. The universal name of the element.

Del

Optional boolean. A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.

ID

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

IX

Optional int. The zero-based index of the element within its parent element.

Element properties

Property Value
Name Act 
Minimum Occurrences
Maximum Occurrences Unbounded 

Element information

Parent elements

PageSheet

Shape

StyleSheet

DocumentSheet

Child elements

Menu

Action

Checked

Disabled

ReadOnly

Invisible

BeginGroup

TagName

ButtonFace

SortKey

Remarks

Remarks

The Act element is relevant only when contained in a Shape or PageSheet element. It is ignored when contained in a DocumentSheet or StyleSheet element.

Example

In the following example, the Menu element contains the command that appears on the shape's shortcut menu. The Action element contains the action to execute when the Lock Text command is clicked.

<Act IX="0">
  <Menu>Lock Text</Menu> 
  <Action F="SetF(GetRef(LockTextEdit),TRUE)">0</Action> 
  <Checked>0</Checked> 
  <Disabled>0</Disabled> 
</Act>

See also

Actions section