Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
|
add(title, [at], [reference], [withProperties]) |
Submenu | 新しいオブジェクトを作成し、それを返す |
| title |
文字列値 | | The name of the Submenu 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] |
LocationOptions
LocationOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| AFTER | 1634104421 afte | 後 |
| AT_BEGINNING | 1650945639 bgng | 先頭 |
| AT_END | 1701733408 end | 最後 |
| BEFORE | 1650812527 befo | 前 |
| UNKNOWN | 1433299822 Unkn | No location |
| | 位置 (既定値=LocationOptions.AT_END) |
| [reference] |
MenuElement | | 位置の基準になるオブジェクト |
| [withProperties] |
Object | | プロパティを設定 |
|
anyItem() |
Submenu | どれかのオブジェクトを返す |
|
count() |
数値 | 要素数を返す |
|
everyItem() |
Array( Submenu ) | 全てのオブジェクトを返す |
|
firstItem() |
Submenu | 最初のオブジェクトを返す |
|
item(index) |
Submenu | インデックスまたは名前で指定したオブジェクトを返す |
| index |
数値, 文字列値 | | インデックスまたは名前 |
|
itemByName(name) |
Submenu | 名前で指定したオブジェクトを返す |
| name |
文字列値 | | |
|
itemByRange(from, to) |
Array( Submenu ) | 範囲で指定したオブジェクトを返す |
| from |
Submenu, 数値, 文字列値 | | 範囲の開始 |
| to |
Submenu, 数値, 文字列値 | | 範囲の終了 |
|
lastItem() |
Submenu | 最後のオブジェクトを返す |
|
middleItem() |
Submenu | 真ん中のオブジェクトを返す |
|
nextItem(obj) |
Submenu | 一つ後のオブジェクトを返す |
| obj |
Submenu | | 位置の基準になるオブジェクト |
|
previousItem(obj) |
Submenu | 一つ前のオブジェクトを返す |
| obj |
Submenu | | 位置の基準になるオブジェクト |
|
toSource() |
文字列値 | ソースコードを表す文字列を返す |