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.AT_END)
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 位置 |
| [reference] |
MenuElement
| | 位置の基準になるオブジェクト |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
anyItem() | Submenu | |
  
   |
count() | 数値型 | 要素数を返す |
  
   |
everyItem() | Submenu | |
  
   |
firstItem() | Submenu | 最初のオブジェクトを返す |
  
   |
item(index) | Submenu | インデックスまたは名前で指定したオブジェクトを返す |
| index |
数値型, 文字列型
| | 番号もしくは名前 |
  
   |
itemByName(name) | Submenu | 名前で指定したオブジェクトを返す |
| name |
文字列型
| | 名前 |
  
   |
itemByRange(from, to) | Submenu | 範囲で指定したオブジェクトを返す |
| from |
Submenu, 数値型, 文字列型
| | 範囲の開始 |
| to |
Submenu, 数値型, 文字列型
| | 範囲の終了 |
  
   |
lastItem() | Submenu | 最後のオブジェクトを返す |
  
   |
middleItem() | Submenu | |
  
   |
nextItem(obj) | Submenu | 一つ後のオブジェクトを返す |
| obj |
Submenu
| | 位置の基準になるオブジェクト |
  
   |
previousItem(obj) | Submenu | 一つ前のオブジェクトを返す |
| obj |
Submenu
| | 位置の基準になるオブジェクト |
  
   |
toSource() | 文字列型 | |