Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
  
   |
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
duplicate() | XMLInstruction | 複製。複製されたオブジェクトを返す |
  
   |
getElements() | XMLInstruction | |
  
   |
move(to, [reference]) | XMLElement | Move element before/after another element or text object, or to beginning/end |
| to |
LocationOptions
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 移動先 |
| [reference] |
XMLItem, Text
| | 位置の基準になるオブジェクト |
  
   |
move(to, [reference]) | XMLInstruction | Moves the element to the specified location. |
| to |
LocationOptions
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 移動先 |
| [reference] |
XMLItem, Text
| | 位置の基準になるオブジェクト |
  
   |
remove() | なし | 削除 |
  
   |
removeEventListener(eventType, handler, [captures]) | ブール型 | EventListenerを削除 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
select([existingSelection]) | なし | 選択状態にする |
| [existingSelection] |
SelectionOptions(既定値=SelectionOptions.REPLACE)
SelectionOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
ADD_TO | 1633969202 | 追加選択する |
  
   |
REMOVE_FROM | 1919249734 | 選択から削除する |
  
   |
REPLACE | 1701998700 | 置き換える |
  
   |
REPLACE_WITH | 1919250519 | 置き換える |
| | 既に選択されているものがあった場合 |
  
   |
select([existingSelection]) | なし | 選択状態にする |
| [existingSelection] |
SelectionOptions(既定値=SelectionOptions.REPLACE_WITH)
SelectionOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
ADD_TO | 1633969202 | 追加選択する |
  
   |
REMOVE_FROM | 1919249734 | 選択から削除する |
  
   |
REPLACE | 1701998700 | 置き換える |
  
   |
REPLACE_WITH | 1919250519 | 置き換える |
| | 既に選択されているものがあった場合 |
  
   |
toSource() | 文字列型 | |
  
   |
toSpecifier() | 文字列型 | |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
  
   |
add(storyOffset, [target], [data], [withProperties]) | XMLInstruction | 新しいオブジェクトを作成し、それを返す |
| storyOffset |
InsertionPoint, 数値型
| | ストーリーの先頭からの位置 |
| [target] |
文字列型
| | A name that identifies the processing instruction to an application reading the exported XML file. |
| [data] |
文字列型
| | A value that tells the application what to do with the processing instruction. |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
add(target, [data], [storyOffset], [withProperties]) | XMLInstruction | 新しいオブジェクトを作成し、それを返す |
| target |
文字列型
| | A name that identifies the processing instruction to an application reading the exported XML file. |
| [data] |
文字列型
| | A value that tells the application what to do with the processing instruction identified in the target. |
| [storyOffset] |
InsertionPoint, 数値型
| | ストーリーの先頭からの位置 |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
anyItem() | XMLInstruction | |
  
   |
count() | 数値型 | 要素数を返す |
  
   |
everyItem() | XMLInstruction | |
  
   |
firstItem() | XMLInstruction | 最初のオブジェクトを返す |
  
   |
item(index) | XMLInstruction | インデックスまたは名前で指定したオブジェクトを返す |
| index |
数値型, 文字列型
| | 番号もしくは名前 |
  
   |
itemByID(id) | XMLInstruction | IDで指定したオブジェクトを返す |
| id |
数値型
| | オブジェクトのID |
  
   |
itemByName(name) | XMLInstruction | 名前で指定したオブジェクトを返す |
| name |
文字列型
| | 名前 |
  
   |
itemByRange(from, to) | XMLInstruction | 範囲で指定したオブジェクトを返す |
| from |
XMLInstruction, 数値型, 文字列型
| | 範囲の開始 |
| to |
XMLInstruction, 数値型, 文字列型
| | 範囲の終了 |
  
   |
lastItem() | XMLInstruction | 最後のオブジェクトを返す |
  
   |
middleItem() | XMLInstruction | |
  
   |
nextItem(obj) | XMLInstruction | 一つ後のオブジェクトを返す |
| obj |
XMLInstruction
| | 位置の基準になるオブジェクト |
  
   |
previousItem(obj) | XMLInstruction | 一つ前のオブジェクトを返す |
| obj |
XMLInstruction
| | 位置の基準になるオブジェクト |
  
   |
toSource() | 文字列型 | |