An XML element.
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
addEventListener(eventType, handler, [captures]) |
EventListener | EventListenerを作成 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
applyCellStyle(using, [clearingOverrides]) |
なし | セルスタイルを適用 |
| using |
文字列値, CellStyle | | セルスタイル |
| [clearingOverrides] |
真偽値 | | 既存の属性を消去するか (既定値=true) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
applyCharacterStyle(using) |
なし | 文字スタイルを適用 |
| using |
文字列値, CharacterStyle | | 文字スタイル |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
applyObjectStyle(using, [clearingOverrides], [clearingOverridesThroughRootObjectStyle]) |
なし | オブジェクトスタイルを適用 |
| using |
文字列値, ObjectStyle | | オブジェクトスタイル |
| [clearingOverrides] |
真偽値 | | 既存の属性を消去するか (既定値=true) |
| [clearingOverridesThroughRootObjectStyle] |
真偽値 | | オブジェクトスタイルで設定されていない属性を消去するか (既定値=false) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
applyParagraphStyle(using, [clearingOverrides]) |
なし | 段落スタイルを適用 |
| using |
文字列値, ParagraphStyle | | 段落スタイル |
| [clearingOverrides] |
真偽値 | | 既存の属性を消去するか (既定値=true) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
applyTableStyle(using, [clearingOverrides]) |
なし | 表スタイルを適用 |
| using |
文字列値, TableStyle | | 表スタイル |
| [clearingOverrides] |
真偽値 | | 既存の属性を消去するか (既定値=true) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
asynchronousExportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) |
BackgroundTask | バックグラウンドで書き出す |
| format |
ExportFormat, 文字列値 | | 形式 |
| to |
ファイル | | 書き出すファイル名 |
| [showingOptions] |
真偽値 | | オプションのダイアログを表示させるか (既定値=false) |
| [using] |
PDFExportPreset | | PDF書き出しプリセット |
| [versionComments] |
文字列値 | | Version Cueコメント |
| [forceSave] |
真偽値 | | Version Cue強制的にバージョンを保存 (既定値=false) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
changeGrep([reverseOrder]) |
Array( Text ) | 正規表現置換 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
changeText([reverseOrder]) |
Array( Text ) | テキストの置換 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
changeTransliterate([reverseOrder]) |
Array( Text ) | 文字種変換の置換 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
convertElementToTable(rowTag, cellTag) |
Table | XML elementを表に変換 |
| rowTag |
XMLTag | | |
| cellTag |
XMLTag | | |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
convertToAttribute([using]) |
XMLAttribute | Converts the XMLElement to an attribute of its parent element. |
| [using] |
文字列値 | | |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
duplicate() |
XMLElement | 複製。複製されたオブジェクトを返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
evaluateXPathExpression(using, [prefixMappingTable]) |
Array( XMLItem ) | Evaluates an XPath expression starting at this XML element in the structure. |
| using |
文字列値 | | The XPath expression. |
| [prefixMappingTable] |
Array of Arrays of 2 Strings | | The namespace mapping table. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
exportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) |
なし | 書き出し |
| format |
ExportFormat, 文字列値 | | 形式 |
| to |
ファイル | | ファイル名 |
| [showingOptions] |
真偽値 | | オプションのダイアログを表示させるか (既定値=false) |
| [using] |
PDFExportPreset | | PDF書き出しプリセット |
| [versionComments] |
文字列値 | | Version Cueコメント |
| [forceSave] |
真偽値 | | Version Cue強制的にバージョンを保存 (既定値=false) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
findGrep([reverseOrder]) |
Array( Text ) | 正規表現検索 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
findText([reverseOrder]) |
Array( Text ) | テキストの検索 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
findTransliterate([reverseOrder]) |
Array( Text ) | 文字種変換の検索 |
| [reverseOrder] |
真偽値 | | 逆順 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
getElements() |
Array( XMLElement ) | オブジェクト参照を返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
importXML(from) |
なし | XMLファイルの読み込み |
| from |
ファイル | | XMLファイル名 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
insertTextAsContent(using, position) |
Text | Inserts the specified text as content before, in, or after the XML element. |
| using |
文字列値, SpecialCharacters | | The text to be inserted. |
| position |
XMLElementPosition
XMLElementPosition |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | AFTER_ELEMENT | 1482778228 Xaft | Specifies the position after the XML element. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | BEFORE_ELEMENT | 1482843494 Xbef | Specifies the position before the XML element. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | ELEMENT_END | 1483042404 Xend | Specifies the position at the end of the XML element. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | ELEMENT_START | 1482844014 Xbgn | Specifies the position at the beginning of the XML element. |
| | |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
markup(using) |
なし | XML要素に関連付ける |
| using |
XMLElement | | |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
move(to, [reference]) |
XMLElement | XML要素の移動 |
| to |
LocationOptions
LocationOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | AFTER | 1634104421 afte | 後 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | AT_BEGINNING | 1650945639 bgng | 先頭 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | AT_END | 1701733408 end | 最後 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | BEFORE | 1650812527 befo | 前 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | UNKNOWN | 1433299822 Unkn | No location |
| | 移動先 |
| [reference] |
XMLItem, Text | | 位置の基準になるオブジェクト |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
placeIntoCopy(on, placePoint, copyItem, [retainExistingFrame]) |
PageItem | Associates the XML element with a copy of a page item. |
| on |
Spread, Page, MasterSpread | | 配置先 |
| placePoint |
[ y1, x1 ] | | The page coordinates of the top left corner of the page item. |
| copyItem |
PageItem | | The page item to copy. |
| [retainExistingFrame] |
真偽値 | | (既定値=false) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
placeIntoFrame(on, geometricBounds) |
PageItem | Places the XML element into a new rectangular page item. If the XML element was already associated with a page item, that page item is deleted. |
| on |
Spread, Page, MasterSpread | | 配置先 |
| geometricBounds |
[ y1, x1, y2, x2 ] | | The bounds of the page item excluding the stroke width. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
placeIntoInlineCopy(copyItem, [retainExistingFrame]) |
PageItem | Associates an existing page item with the XML element and places it into an inline frame. |
| copyItem |
PageItem | | The page item to copy. |
| [retainExistingFrame] |
真偽値 | | If true, moves the existing page item. If false, moves a copy of the page item.(既定値=false) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
placeIntoInlineFrame(dimensions) |
PageItem | Places an XML element into an inline frame. |
| dimensions |
[ width, height ] | | width, heightは数値または長さ値 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
placeXML(using) |
なし | Places XML content into the story, replacing the existing content. |
| using |
Story, PageItem, Graphic, Movie, Sound | | The object to place into. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
remove() |
なし | 削除 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
removeEventListener(eventType, handler, [captures]) |
真偽値 | EventListenerを削除 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
select([existingSelection]) |
なし | 選択状態にする |
| [existingSelection] |
SelectionOptions
SelectionOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | ADD_TO | 1633969202 add2 | 追加選択する |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | REMOVE_FROM | 1919249734 remF | 選択から削除する |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | REPLACE_WITH | 1919250519 repW | 置き換える |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) | SET_KEY | 1936028779 setk | 整列のキーオブジェクトにする |
| | 既に選択されているものがあった場合 (既定値=SelectionOptions.REPLACE_WITH) |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
setContent(using, [relativeBasePath]) |
PageItem | Replaces the content of XML element with content imported from a file. |
| using |
文字列値 | | フルパス名 |
| [relativeBasePath] |
文字列値 | | Base path used to resolve relative paths. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
store(using, [withProperties]) |
Asset | ライブラリに追加 |
| using |
Library | | 追加先のライブラリ |
| [withProperties] |
Object | | プロパティを設定 |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
toSource() |
文字列値 | ソースコードを表す文字列を返す |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
toSpecifier() |
文字列値 | Retrieves the object specifier. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
untag() |
なし | Untags an element. |
![[12]](12e.png) ![[13]](13e.png) ![[14]](14e.png) ![[15]](15e.png)
![[16]](16e.png) ![[17]](17e.png) ![[18]](18e.png) ![[19]](19e.png) |
validate([maximumErrors]) |
Array( ValidationError ) | Validates the element against a DTD. |
| [maximumErrors] |
数値 | | 最大数(既定値=250) |