Act

Act class

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

Constructors

NameDescription
ActConstructor.

Properties

NameTypeDescription
NameStringThe name of the element.
NameUStringThe universal name of the element.
IDintThe unique ID of the element within its parent element.
IXintThe zero-based index of the element within its parent element.
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
MenuStr2ValueSpecifies the name of the command that appears on the shortcut menu for a shape or page.
ActionDoubleValueContains the formula to execute when a user clicks the command name defined in the corresponding Menu element.
CheckedBoolValueDetermines whether a check mark is displayed beside the command name on a shape’s shortcut menu.
DisabledBoolValueDisabled element determines whether the command name is displayed on the shortcut menu.
ReadOnlyBoolValueDetermines whether the action on a smart tag or shortcut menu is read-only.
InvisibleBoolValueInvisible element indicates whether the action is visible on the smart tag or shortcut menu.
BeginGroupBoolValueIndicates whether a separator is inserted into the menu above this action.
FlyoutChildBoolValueDetermines whether the action row is a child flyout menu of the last row above it that is not a flyout child.
TagNameStr2ValueIt contains the name of the smart tag that the action is associated with.
ButtonFaceStr2ValueIt identifies the icon that appears next to an item on a shortcut menu.
SortKeyStr2ValueIt specifies a number that determines the order of actions that appear on a shortcut or smart tag menu.

Methods

NameDescription
deepCloneCreates deep copy of this instance.

Act()

Constructor.

Act.Name property

The name of the element.

Type: String

Act.NameU property

The universal name of the element.

Type: String

Act.ID property

The unique ID of the element within its parent element.

Type: int

Act.IX property

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

Type: int

Act.Del property

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

Type: int

Specifies the name of the command that appears on the shortcut menu for a shape or page.

Type: Str2Value

Act.Action property

Contains the formula to execute when a user clicks the command name defined in the corresponding Menu element.

Type: DoubleValue

Act.Checked property

Determines whether a check mark is displayed beside the command name on a shape’s shortcut menu.

Type: BoolValue

Act.Disabled property

Disabled element determines whether the command name is displayed on the shortcut menu.

Type: BoolValue

Act.ReadOnly property

Determines whether the action on a smart tag or shortcut menu is read-only.

Type: BoolValue

Act.Invisible property

Invisible element indicates whether the action is visible on the smart tag or shortcut menu.

Type: BoolValue

Act.BeginGroup property

Indicates whether a separator is inserted into the menu above this action.

Type: BoolValue

Act.FlyoutChild property

Determines whether the action row is a child flyout menu of the last row above it that is not a flyout child.

Type: BoolValue

Act.TagName property

It contains the name of the smart tag that the action is associated with.

Type: Str2Value

Act.ButtonFace property

It identifies the icon that appears next to an item on a shortcut menu.

Type: Str2Value

Act.SortKey property

It specifies a number that determines the order of actions that appear on a shortcut or smart tag menu.

Type: Str2Value

deepClone()

Creates deep copy of this instance.