Act Element

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

0

Maximum Occurrences

Unbounded

Element information

Parent elements

PageSheet

Shape

StyleSheet

DocumentSheet

Child elements

Menu

Action

Checked

Disabled

ReadOnly

Invisible

BeginGroup

TagName

ButtonFace

SortKey

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.

See also

Actions section