Submenu

サブメニュー

プロパティ(オブジェクト)

Ver. プロパティ名 説明
Parent Menu, Submenu 親のオブジェクト
EventListeners EventListeners event listeners
Events Events events
MenuElements MenuElements menu elements
MenuItems MenuItems menu items
MenuSeparators MenuSeparators メニューセパレータ
Submenus Submenus サブメニュー

プロパティ

Ver. プロパティ名 R/O 説明
Index Long型 インデックス
Name String型 既定値。オブジェクトの名前を返す
Title String型 表示する名称。Winなら&でショートカットが使える

メソッド

Ver. メソッド名/パラメータ 戻り値/パラメータの値 説明
AddEventListener EventListener EventListenerを作成
EventType String型
Handler File, JavaScript FileはString型
[Captures] Boolean型
Delete オブジェクトを削除
RemoveEventListener Boolean型
EventType String型
Handler File, JavaScript FileはString型
[Captures] Boolean型

コレクションのプロパティ Submenus

Ver. プロパティ名 R/O 説明
Count Long型 オブジェクト数
Item(Index) Object 既定値、省略可。IndexまたはName(なければLabel)で指定されたオブジェクトを返す

コレクションのメソッド Submenus

Ver. メソッド名/パラメータ 戻り値/パラメータの値 説明
Add Submenu 新しいオブジェクトを作成し、それを返す
Title String型 The name of the ^Object for display in the user interface. The title includes any ampersand characters (&), which are used to tell the Windows OS to underline the following character in the name for use with the Alt key to navigate to a menu item. Double ampersands are used to display an actual ampersand character in the name. The Mac OS ignores and removes the extra ampersand characters.
[At] idLocationOptions
idLocationOptions
Ver.10進数説明
idAfter1634104421
idAtBeginning1650945639 先頭
idAtEnd1701733408 最後
idBefore1650812527
idUnknown1433299822 No location
位置
[Reference] MenuElement 位置の基準になるオブジェクト
AnyItem Object 各オブジェクトを返す
FirstItem Object 最初のオブジェクトを返す
ItemByRange Objects 範囲で指定したオブジェクトを返す
From Object, Long型, String型 範囲の開始
To Object, Long型, String型 範囲の終了
LastItem Object 最後のオブジェクトを返す
MiddleItem Object middle objectを返す
NextItem Object 一つ後のオブジェクトを返す
Obj Object 位置の基準になるオブジェクト
PreviousItem Object 一つ前のオブジェクトを返す
Obj Object 位置の基準になるオブジェクト