Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
  
   |
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
applyCellStyle(using, [clearingOverrides]) | なし | セルスタイルを適用 |
| using |
文字列型, CellStyle
| | The cell style to apply. |
| [clearingOverrides] |
ブール型(既定値=true)
| | 変更されている属性を消去するか |
  
   |
applyCharacterStyle(using) | なし | 文字スタイルを適用 |
| using |
文字列型, CharacterStyle
| | The character style to apply. |
  
   |
applyObjectStyle(using, [clearingOverrides], [clearingOverridesThroughRootObjectStyle]) | なし | オブジェクトスタイルを適用 |
| using |
文字列型, ObjectStyle
| | The object style to apply. |
| [clearingOverrides] |
ブール型(既定値=true)
| | 変更されている属性を消去するか |
| [clearingOverridesThroughRootObjectStyle] |
ブール型(既定値=false)
| | 変更されている属性を消去するか |
  
   |
applyParagraphStyle(using, [clearingOverrides]) | なし | 段落スタイルを適用 |
| using |
文字列型, ParagraphStyle
| | The paragraph style to apply. |
| [clearingOverrides] |
ブール型(既定値=true)
| | 変更されている属性を消去するか |
  
   |
applyTableStyle(using, [clearingOverrides]) | なし | 表スタイルを適用 |
| using |
文字列型, TableStyle
| | The table style to apply. |
| [clearingOverrides] |
ブール型(既定値=true)
| | 変更されている属性を消去するか |
  
   |
asynchronousExportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) | BackgroundTask | asynchronously exports the object(s) to a file. |
| format |
ExportFormat, 文字列型
| | |
| to |
File型
| | 書き出すファイル |
| [showingOptions] |
ブール型(既定値=false)
| | オプションのダイアログを表示するかどうか |
| [using] |
PDFExportPreset
| | |
| [versionComments] |
文字列型
| | コメント |
| [forceSave] |
ブール型(既定値=false)
| | 強制保存 |
  
   |
changeGrep([reverseOrder]) | Text | 正規表現置換 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
changeText([reverseOrder]) | Text | テキストの置換 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
changeTransliterate([reverseOrder]) | Text | 文字種変換の置換 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
convertElementToTable(rowTag, cellTag) | Table | XML elementを表に変換 |
| rowTag |
XMLTag
| | The XML tag that indicates a table row. |
| cellTag |
XMLTag
| | The XML tag that indicates a table cell. |
  
   |
convertToAttribute([using]) | XMLAttribute | Converts the XMLElement to an attribute of its parent element. |
| [using] |
文字列型
| | The name to give to the new attribute. |
  
   |
duplicate() | XMLElement | 複製。複製されたオブジェクトを返す |
  
   |
evaluateXPathExpression(using, [prefixMappingTable]) | 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. |
  
   |
exportFile(format, to, [showingOptions], [using]) | なし | 書き出し |
| format |
ExportFormat, 文字列型
| | |
| to |
File型
| | ファイル名 |
| [showingOptions] |
ブール型(既定値=false)
| | オプションのダイアログを表示するかどうか |
| [using] |
PDFExportPreset
| | |
  
   |
exportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) | なし | 書き出し |
| format |
ExportFormat, 文字列型
| | |
| to |
File型
| | ファイル名 |
| [showingOptions] |
ブール型(既定値=false)
| | オプションのダイアログを表示するかどうか |
| [using] |
PDFExportPreset
| | |
| [versionComments] |
文字列型
| | コメント |
| [forceSave] |
ブール型(既定値=false)
| | 強制保存 |
  
   |
findGrep([reverseOrder]) | Text | 正規表現検索 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
findText([reverseOrder]) | Text | テキストの検索 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
findTransliterate([reverseOrder]) | Text | 文字種変換の検索 |
| [reverseOrder] |
ブール型
| | 逆順 |
  
   |
getElements() | XMLElement | |
  
   |
importXML(from) | なし | XMLファイルの読み込み |
| from |
File型
| | ファイル名 |
  
   |
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進数 | 説明 |
  
   |
AFTER_ELEMENT | 1482778228 | |
  
   |
BEFORE_ELEMENT | 1482843494 | |
  
   |
ELEMENT_END | 1483042404 | |
  
   |
ELEMENT_START | 1482844014 | |
| | The position at which to insert the text. Note that text inserted before or after the element does not become part of the content of the element. Instead, it becomes content of the parent of the element. |
  
   |
markup(using) | なし | Associates the object with the specified XML element while preserving existing content. |
| using |
Text, Story, PageItem
| | The object to mark up. |
  
   |
markup(using) | なし | Associates the object with the specified XML element while preserving existing content. |
| using |
PageItem, Movie, Sound, Graphic, Story, Text, Table
| | The object to mark up. |
  
   |
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]) | XMLElement | 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
| | 位置の基準になるオブジェクト |
  
   |
placeIntoCopy(on, placePoint, copyItem, [retainExistingFrame]) | PageItem | Associates the XML element with a copy of a page item. |
| on |
Spread, Page, MasterSpread
| | The page or spread on which to create the new page item. |
| placePoint |
[x, y]
| | The page coordinates of the top left corner of the page item |
| copyItem |
PageItem
| | The page item to copy. |
| [retainExistingFrame] |
ブール型(既定値=false)
| | If true, associates the XML element with the existing page item and moves the page item (rather than a copy of the page item). |
  
   |
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
| | The page or spread on which to create the new page item. |
| geometricBounds |
[y1, x1, y2, x2]
| | The bounds of the page item excluding the stroke width |
  
   |
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] |
ブール型(既定値=false)
| | If true, moves the existing page item. If false, moves a copy of the page item. |
  
   |
placeIntoInlineFrame(dimensions) | PageItem | Places an XML element into an inline frame. |
| dimensions |
[width, height]
| | The dimensions of the inline frame in the format. |
  
   |
placeXML(using) | なし | Places XML content into the story, replacing the existing content. |
| using |
Story, PageItem
| | The story into which to place the XML content. |
  
   |
placeXML(using) | なし | Places XML content into the story, replacing the existing content. |
| using |
Story, PageItem, Graphic, Movie, Sound
| | The object to place into. |
  
   |
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 | 置き換える |
| | 既に選択されているものがあった場合 |
  
   |
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. |
  
   |
store(using) | Asset | ライブラリに追加 |
| using |
Library
| | 追加先のライブラリ |
  
   |
store(using, [withProperties]) | Asset | ライブラリに追加 |
| using |
Library
| | 追加先のライブラリ |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
toSource() | 文字列型 | |
  
   |
toSpecifier() | 文字列型 | |
  
   |
untag() | なし | Untags an element. |
  
   |
validate([maximumErrors]) | ValidationError | Validates the element against a DTD. |
| [maximumErrors] |
数値型(既定値=250)
| | The maximum number of validation errors to generate. |