Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
  
   |
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
extractLabel(key) | 文字列型 | キーに関連づけられたラベルを取得 |
| key |
文字列型
| | キー |
  
   |
getElements() | Asset | |
  
   |
insertLabel(key, value) | なし | キーに関連づけられたラベルを設定 |
| key |
文字列型
| | キー |
| value |
文字列型
| | ラベルの値 |
  
   |
placeAsset(on) | varies=any | アセットを配置。配置したオブジェクトを返す |
| on |
Document
| | 配置するドキュメント |
  
   |
placeAsset(on) | varies=any | アセットを配置。配置したオブジェクトを返す |
| on |
Document, Text
| | 配置するドキュメントまたはテキスト (InsertionPoint?) |
  
   |
remove() | なし | 削除 |
  
   |
removeEventListener(eventType, handler, [captures]) | ブール型 | EventListenerを削除 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
select([existingSelection]) | なし | 選択状態にする |
| [existingSelection] |
SelectionOptions(既定値=SelectionOptions.REPLACE_WITH)
SelectionOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
ADD_TO | 1633969202 | 追加選択する |
  
   |
REMOVE_FROM | 1919249734 | 選択から削除する |
  
   |
REPLACE | 1701998700 | 置き換える |
  
   |
REPLACE_WITH | 1919250519 | 置き換える |
| | 既に選択されているものがあった場合 |
  
   |
toSource() | 文字列型 | |
  
   |
toSpecifier() | 文字列型 | |