MenuItems

MenuItem(メニュー項目)のコレクション

プロパティ

Ver.プロパティ名R/O説明
[12][13][14][15]
[16][17][18][19]
length 数値オブジェクト数

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[12][13][14][15]
[16][17][18][19]
add(associatedMenuAction, [at], [reference], [withProperties]) MenuItem新しいオブジェクトを作成し、それを返す
associatedMenuAction MenuActionメニューアクション
[at] LocationOptions
LocationOptions
Ver.10進数/文字列説明
[12][13][14][15]
[16][17][18][19]
AFTER1634104421
afte
[12][13][14][15]
[16][17][18][19]
AT_BEGINNING1650945639
bgng
先頭
[12][13][14][15]
[16][17][18][19]
AT_END1701733408
end
最後
[12][13][14][15]
[16][17][18][19]
BEFORE1650812527
befo
[12][13][14][15]
[16][17][18][19]
UNKNOWN1433299822
Unkn
No location
位置 (既定値=LocationOptions.AT_END)
[reference] MenuElement位置の基準になるオブジェクト
[withProperties] Objectプロパティを設定
[12][13][14][15]
[16][17][18][19]
anyItem() MenuItemどれかのオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
count() 数値要素数を返す
[12][13][14][15]
[16][17][18][19]
everyItem() Array( MenuItem )全てのオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
firstItem() MenuItem最初のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
item(index) MenuItemインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[12][13][14][15]
[16][17][18][19]
itemByID(id) MenuItemIDで指定したオブジェクトを返す
id 数値
[12][13][14][15]
[16][17][18][19]
itemByName(name) MenuItem名前で指定したオブジェクトを返す
name 文字列値
[12][13][14][15]
[16][17][18][19]
itemByRange(from, to) Array( MenuItem )範囲で指定したオブジェクトを返す
from MenuItem, 数値, 文字列値範囲の開始
to MenuItem, 数値, 文字列値範囲の終了
[12][13][14][15]
[16][17][18][19]
lastItem() MenuItem最後のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
middleItem() MenuItem真ん中のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
nextItem(obj) MenuItem一つ後のオブジェクトを返す
obj MenuItem位置の基準になるオブジェクト
[12][13][14][15]
[16][17][18][19]
previousItem(obj) MenuItem一つ前のオブジェクトを返す
obj MenuItem位置の基準になるオブジェクト
[12][13][14][15]
[16][17][18][19]
toSource() 文字列値ソースコードを表す文字列を返す

MenuItem

メニュー項目

プロパティ(parentとその逆)

Ver.プロパティR/O
[12][13][14][15]
[16][17][18][19]
parent Menu, Submenu
[12][13][14][15]
[16][17][18][19]
eventListeners EventListeners
[12][13][14][15]
[16][17][18][19]
events Events

プロパティ

Ver.プロパティ名R/O説明
[12][13][14][15]
[16][17][18][19]
associatedMenuAction MenuActionThe menu action that implements the menu item.
[12][13][14][15]
[16][17][18][19]
checked 真偽値チェックされているか
[12][13][14][15]
[16][17][18][19]
enabled 真偽値If true, the MenuItem is enabled.
[12][13][14][15]
[16][17][18][19]
id 数値オブジェクトのID
[12][13][14][15]
[16][17][18][19]
index 数値インデックス
[12][13][14][15]
[16][17][18][19]
isValid 真偽値オブジェクトが有効かどうか
[12][13][14][15]
[16][17][18][19]
name 文字列値オブジェクトの名前
[12][13][14][15]
[16][17][18][19]
properties Object
[12][13][14][15]
[16][17][18][19]
title 文字列値表示する名称。Winなら&でショートカットが使える

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[12][13][14][15]
[16][17][18][19]
addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[12][13][14][15]
[16][17][18][19]
getElements() Array( MenuItem )オブジェクト参照を返す
[12][13][14][15]
[16][17][18][19]
remove() なし削除
[12][13][14][15]
[16][17][18][19]
removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[12][13][14][15]
[16][17][18][19]
select() なし選択する
[12][13][14][15]
[16][17][18][19]
toSource() 文字列値ソースコードを表す文字列を返す
[12][13][14][15]
[16][17][18][19]
toSpecifier() 文字列値Retrieves the object specifier.