Adobe InDesign CS4 (6.0) Object Model JS: MenuElement

InDesign CS4

Class

MenuElement

 

A menu elements

Superclass of MenuItem, MenuSeparator, and Submenu

QuickLinks

getElements, remove, toSource, toSpecifier

Hierarchy

Menu | Submenu
MenuElement
MenuItem | MenuSeparator | Submenu

Properties

PropertyTypeAccessDescription
indexnumber readonlyThe index of the MenuElement within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentMenuSubmenu readonlyThe parent of the MenuElement (a Menu or Submenu).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

Array of MenuElement getElements ()
Resolves the object specifier, creating an array of object references.

void remove ()
Deletes the MenuElement.

string toSource ()
Generates a string which, if executed, will return the MenuElement.

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of MenuElement MenuElements.itemByRange (from: any, to: any)

MenuElement MenuElements.nextItem (obj: MenuElement)

MenuElement MenuElements.previousItem (obj: MenuElement)

MenuItem MenuItems.add (associatedMenuAction: MenuAction[, at: LocationOptions=LocationOptions.AT_END][, reference: MenuElement][, withProperties: Object])

MenuSeparator MenuSeparators.add ([at: LocationOptions=LocationOptions.AT_END][, reference: MenuElement][, withProperties: Object])

Submenu Submenus.add (title: string[, at: LocationOptions=LocationOptions.AT_END][, reference: MenuElement][, withProperties: Object])

Return

Array of MenuElement MenuElement.getElements ()

MenuElement MenuElements.[] (index: number)

MenuElement MenuElements.anyItem ()

Array of MenuElement MenuElements.everyItem ()

MenuElement MenuElements.firstItem ()

MenuElement MenuElements.item (index: any)

MenuElement MenuElements.itemByName (name: string)

Array of MenuElement MenuElements.itemByRange (from: any, to: any)

MenuElement MenuElements.lastItem ()

MenuElement MenuElements.middleItem ()

MenuElement MenuElements.nextItem (obj: MenuElement)

MenuElement MenuElements.previousItem (obj: MenuElement)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index