XMLElements

XMLElement(An XML element.)のコレクション

プロパティ

Ver.プロパティ名R/O説明
[12][13][14][15]
[16][17][18][19]
length 数値オブジェクト数

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[12][13][14][15]
[16][17][18][19]
add(markupTag, [xmlContent], [withProperties]) XMLElement新しいオブジェクトを作成し、それを返す
markupTag 文字列値, XMLTagXMLタグ
[xmlContent] Text, Story, PageItem, Movie, Sound, Graphic, Table, Cell関連付けるテキスト
[withProperties] Objectプロパティを設定
[12][13][14][15]
[16][17][18][19]
anyItem() XMLElementどれかのオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
count() 数値要素数を返す
[12][13][14][15]
[16][17][18][19]
everyItem() Array( XMLElement )全てのオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
firstItem() XMLElement最初のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
item(index) XMLElementインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[12][13][14][15]
[16][17][18][19]
itemByID(id) XMLElementIDで指定したオブジェクトを返す
id 数値
[12][13][14][15]
[16][17][18][19]
itemByRange(from, to) Array( XMLElement )範囲で指定したオブジェクトを返す
from XMLElement, 数値, 文字列値範囲の開始
to XMLElement, 数値, 文字列値範囲の終了
[12][13][14][15]
[16][17][18][19]
lastItem() XMLElement最後のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
middleItem() XMLElement真ん中のオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
nextItem(obj) XMLElement一つ後のオブジェクトを返す
obj XMLElement位置の基準になるオブジェクト
[12][13][14][15]
[16][17][18][19]
previousItem(obj) XMLElement一つ前のオブジェクトを返す
obj XMLElement位置の基準になるオブジェクト
[12][13][14][15]
[16][17][18][19]
toSource() 文字列値ソースコードを表す文字列を返す

XMLElement

An XML element.

プロパティ(parentとその逆)

Ver.プロパティR/O
[12][13][14][15]
[16][17][18][19]
parent Document, XMLElement
[12][13][14][15]
[16][17][18][19]
parentStory Story
[12][13][14][15]
[16][17][18][19]
cells Cells
[12][13][14][15]
[16][17][18][19]
characters Characters
[12][13][14][15]
[16][17][18][19]
epss EPSs
[12][13][14][15]
[16][17][18][19]
eventListeners EventListeners
[12][13][14][15]
[16][17][18][19]
events Events
[12][13][14][15]
[16][17][18][19]
graphics Graphics
[12][13][14][15]
[16][17][18][19]
images Images
[12][13][14][15]
[16][17][18][19]
insertionPoints InsertionPoints
[12][13][14][15]
[16][17][18][19]
lines Lines
[12][13][14][15]
[16][17][18][19]
pageItems PageItems
[12][13][14][15]
[16][17][18][19]
paragraphs Paragraphs
[12][13][14][15]
[16][17][18][19]
pdfs PDFs
[12][13][14][15]
[16][17][18][19]
picts PICTs
[12][13][14][15]
[16][17][18][19]
stories Stories
[15]
[16][17][18][19]
svgs SVGs
[12][13][14][15]
[16][17][18][19]
tables Tables
[12][13][14][15]
[16][17][18][19]
textColumns TextColumns
[12][13][14][15]
[16][17][18][19]
texts Texts
[12][13][14][15]
[16][17][18][19]
textStyleRanges TextStyleRanges
[12][13][14][15]
[16][17][18][19]
wmfs WMFs
[12][13][14][15]
[16][17][18][19]
words Words
[12][13][14][15]
[16][17][18][19]
xmlAttributes XMLAttributes
[12][13][14][15]
[16][17][18][19]
xmlComments XMLComments
[12][13][14][15]
[16][17][18][19]
xmlElements XMLElements
[12][13][14][15]
[16][17][18][19]
xmlInstructions XMLInstructions
[12][13][14][15]
[16][17][18][19]
xmlItems XMLItems

プロパティ

Ver.プロパティ名R/O説明
[12][13][14][15]
[16][17][18][19]
contents 文字列値, SpecialCharacters内容(テキスト)
[12][13][14][15]
[16][17][18][19]
id 数値オブジェクトのID
[12][13][14][15]
[16][17][18][19]
index 数値インデックス
[12][13][14][15]
[16][17][18][19]
isValid 真偽値オブジェクトが有効かどうか
[12][13][14][15]
[16][17][18][19]
markupTag XMLTag, 文字列値The XML tag applied to the element. Can also accept: String.
[12][13][14][15]
[16][17][18][19]
properties Object
[12][13][14][15]
[16][17][18][19]
storyOffset InsertionPointThe insertion point before the table in the story containing the table.
[12][13][14][15]
[16][17][18][19]
xmlContent Text, Story, PageItem, Movie, Sound, Graphic, Table, CellThe text content or page item referred to by the element.

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[12][13][14][15]
[16][17][18][19]
addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[12][13][14][15]
[16][17][18][19]
applyCellStyle(using, [clearingOverrides]) なしセルスタイルを適用
using 文字列値, CellStyleセルスタイル
[clearingOverrides] 真偽値既存の属性を消去するか (既定値=true)
[12][13][14][15]
[16][17][18][19]
applyCharacterStyle(using) なし文字スタイルを適用
using 文字列値, CharacterStyle文字スタイル
[12][13][14][15]
[16][17][18][19]
applyObjectStyle(using, [clearingOverrides], [clearingOverridesThroughRootObjectStyle]) なしオブジェクトスタイルを適用
using 文字列値, ObjectStyleオブジェクトスタイル
[clearingOverrides] 真偽値既存の属性を消去するか (既定値=true)
[clearingOverridesThroughRootObjectStyle] 真偽値オブジェクトスタイルで設定されていない属性を消去するか (既定値=false)
[12][13][14][15]
[16][17][18][19]
applyParagraphStyle(using, [clearingOverrides]) なし段落スタイルを適用
using 文字列値, ParagraphStyle段落スタイル
[clearingOverrides] 真偽値既存の属性を消去するか (既定値=true)
[12][13][14][15]
[16][17][18][19]
applyTableStyle(using, [clearingOverrides]) なし表スタイルを適用
using 文字列値, TableStyle表スタイル
[clearingOverrides] 真偽値既存の属性を消去するか (既定値=true)
[12][13][14][15]
[16][17][18][19]
asynchronousExportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) BackgroundTaskバックグラウンドで書き出す
format ExportFormat, 文字列値形式
to ファイル書き出すファイル名
[showingOptions] 真偽値オプションのダイアログを表示させるか (既定値=false)
[using] PDFExportPresetPDF書き出しプリセット
[versionComments] 文字列値Version Cueコメント
[forceSave] 真偽値Version Cue強制的にバージョンを保存 (既定値=false)
[12][13][14][15]
[16][17][18][19]
changeGrep([reverseOrder]) Array( Text )正規表現置換
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
changeText([reverseOrder]) Array( Text )テキストの置換
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
changeTransliterate([reverseOrder]) Array( Text )文字種変換の置換
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
convertElementToTable(rowTag, cellTag) TableXML elementを表に変換
rowTag XMLTag
cellTag XMLTag
[12][13][14][15]
[16][17][18][19]
convertToAttribute([using]) XMLAttributeConverts the XMLElement to an attribute of its parent element.
[using] 文字列値
[12][13][14][15]
[16][17][18][19]
duplicate() XMLElement複製。複製されたオブジェクトを返す
[12][13][14][15]
[16][17][18][19]
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 StringsThe namespace mapping table.
[12][13][14][15]
[16][17][18][19]
exportFile(format, to, [showingOptions], [using], [versionComments], [forceSave]) なし書き出し
format ExportFormat, 文字列値形式
to ファイルファイル名
[showingOptions] 真偽値オプションのダイアログを表示させるか (既定値=false)
[using] PDFExportPresetPDF書き出しプリセット
[versionComments] 文字列値Version Cueコメント
[forceSave] 真偽値Version Cue強制的にバージョンを保存 (既定値=false)
[12][13][14][15]
[16][17][18][19]
findGrep([reverseOrder]) Array( Text )正規表現検索
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
findText([reverseOrder]) Array( Text )テキストの検索
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
findTransliterate([reverseOrder]) Array( Text )文字種変換の検索
[reverseOrder] 真偽値逆順
[12][13][14][15]
[16][17][18][19]
getElements() Array( XMLElement )オブジェクト参照を返す
[12][13][14][15]
[16][17][18][19]
importXML(from) なしXMLファイルの読み込み
from ファイルXMLファイル名
[12][13][14][15]
[16][17][18][19]
insertTextAsContent(using, position) TextInserts the specified text as content before, in, or after the XML element.
using 文字列値, SpecialCharactersThe text to be inserted.
position XMLElementPosition
XMLElementPosition
Ver.10進数/文字列説明
[12][13][14][15]
[16][17][18][19]
AFTER_ELEMENT1482778228
Xaft
Specifies the position after the XML element.
[12][13][14][15]
[16][17][18][19]
BEFORE_ELEMENT1482843494
Xbef
Specifies the position before the XML element.
[12][13][14][15]
[16][17][18][19]
ELEMENT_END1483042404
Xend
Specifies the position at the end of the XML element.
[12][13][14][15]
[16][17][18][19]
ELEMENT_START1482844014
Xbgn
Specifies the position at the beginning of the XML element.
[12][13][14][15]
[16][17][18][19]
markup(using) なしXML要素に関連付ける
using XMLElement
[12][13][14][15]
[16][17][18][19]
move(to, [reference]) XMLElementXML要素の移動
to LocationOptions
LocationOptions
Ver.10進数/文字列説明
[12][13][14][15]
[16][17][18][19]
AFTER1634104421
afte
[12][13][14][15]
[16][17][18][19]
AT_BEGINNING1650945639
bgng
先頭
[12][13][14][15]
[16][17][18][19]
AT_END1701733408
end
最後
[12][13][14][15]
[16][17][18][19]
BEFORE1650812527
befo
[12][13][14][15]
[16][17][18][19]
UNKNOWN1433299822
Unkn
No location
移動先
[reference] XMLItem, Text位置の基準になるオブジェクト
[12][13][14][15]
[16][17][18][19]
placeIntoCopy(on, placePoint, copyItem, [retainExistingFrame]) PageItemAssociates 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 PageItemThe page item to copy.
[retainExistingFrame] 真偽値(既定値=false)
[12][13][14][15]
[16][17][18][19]
placeIntoFrame(on, geometricBounds) PageItemPlaces 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][13][14][15]
[16][17][18][19]
placeIntoInlineCopy(copyItem, [retainExistingFrame]) PageItemAssociates an existing page item with the XML element and places it into an inline frame.
copyItem PageItemThe page item to copy.
[retainExistingFrame] 真偽値If true, moves the existing page item. If false, moves a copy of the page item.(既定値=false)
[12][13][14][15]
[16][17][18][19]
placeIntoInlineFrame(dimensions) PageItemPlaces an XML element into an inline frame.
dimensions [ width, height ]width, heightは数値または長さ値
[12][13][14][15]
[16][17][18][19]
placeXML(using) なしPlaces XML content into the story, replacing the existing content.
using Story, PageItem, Graphic, Movie, SoundThe object to place into.
[12][13][14][15]
[16][17][18][19]
remove() なし削除
[12][13][14][15]
[16][17][18][19]
removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[12][13][14][15]
[16][17][18][19]
select([existingSelection]) なし選択状態にする
[existingSelection] SelectionOptions
SelectionOptions
Ver.10進数/文字列説明
[12][13][14][15]
[16][17][18][19]
ADD_TO1633969202
add2
追加選択する
[12][13][14][15]
[16][17][18][19]
REMOVE_FROM1919249734
remF
選択から削除する
[12][13][14][15]
[16][17][18][19]
REPLACE_WITH1919250519
repW
置き換える
[12][13][14][15]
[16][17][18][19]
SET_KEY1936028779
setk
整列のキーオブジェクトにする
既に選択されているものがあった場合 (既定値=SelectionOptions.REPLACE_WITH)
[12][13][14][15]
[16][17][18][19]
setContent(using, [relativeBasePath]) PageItemReplaces the content of XML element with content imported from a file.
using 文字列値フルパス名
[relativeBasePath] 文字列値Base path used to resolve relative paths.
[12][13][14][15]
[16][17][18][19]
store(using, [withProperties]) Assetライブラリに追加
using Library追加先のライブラリ
[withProperties] Objectプロパティを設定
[12][13][14][15]
[16][17][18][19]
toSource() 文字列値ソースコードを表す文字列を返す
[12][13][14][15]
[16][17][18][19]
toSpecifier() 文字列値Retrieves the object specifier.
[12][13][14][15]
[16][17][18][19]
untag() なしUntags an element.
[12][13][14][15]
[16][17][18][19]
validate([maximumErrors]) Array( ValidationError )Validates the element against a DTD.
[maximumErrors] 数値最大数(既定値=250)