Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
  
   |
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
createGuides([numberOfRows], [numberOfColumns], [rowGutter], [columnGutter], [guideColor], [fitMargins], [removeExisting], [layer]) | なし | ガイドを作成 |
| [numberOfRows] |
数値型(既定値=0)
| | (0 - 40) |
| [numberOfColumns] |
数値型(既定値=0)
| | (0 - 40) |
| [rowGutter] |
長さ(数値または文字列)(既定値=0)
| | 行の間隔 (0 - 1440 pt) |
| [columnGutter] |
長さ(数値または文字列)(既定値=0)
| | 列の間隔 (0 - 1440 pt) |
| [guideColor] |
[r, g, b], UIColors
| | ガイドのカラー。R,G,Bは0-255 |
| [fitMargins] |
ブール型(既定値=false)
| | If true, the row height and column width are calculated based on the space within the page margins. If false, row height and column width are calculated based on the full page. |
| [removeExisting] |
ブール型(既定値=false)
| | 既存のガイドを削除するかどうか |
| [layer] |
Layer
| | 配置するレイヤー |
  
   |
detach() | なし | 選択部分をマスターから分離 |
  
   |
duplicate([to], [reference]) | Spread | 複製。複製されたオブジェクトを返す |
| [to] |
LocationOptions(既定値=LocationOptions.AT_END)
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 複写先 |
| [reference] |
Spread, Document
| | 位置の基準になるオブジェクト |
  
   |
duplicate([to], [reference]) | varies=any | 複製。複製されたオブジェクトを返す |
| [to] |
LocationOptions(既定値=LocationOptions.AT_END)
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 複写先 |
| [reference] |
Spread, Document, MasterSpread
| | 位置の基準になるオブジェクト |
  
   |
extractLabel(key) | 文字列型 | キーに関連づけられたラベルを取得 |
| key |
文字列型
| | キー |
  
   |
getElements() | Spread | |
  
   |
insertLabel(key, value) | なし | キーに関連づけられたラベルを設定 |
| key |
文字列型
| | キー |
| value |
文字列型
| | ラベルの値 |
  
   |
move([to], [reference]) | Spread | 移動 |
| [to] |
LocationOptions(既定値=LocationOptions.AT_END)
LocationOptions |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
AFTER | 1634104421 | 後 |
  
   |
AT_BEGINNING | 1650945639 | 先頭 |
  
   |
AT_END | 1701733408 | 最後 |
  
   |
BEFORE | 1650812527 | 前 |
  
   |
UNKNOWN | 1433299822 | No location |
| | 移動先 |
| [reference] |
Spread, Page, Document
| | 位置の基準になるオブジェクト |
  
   |
place(fileName, [placePoint], [destinationLayer], [showingOptions], [autoflowing], [retainingFormatting], [convertingQuotes], [withProperties]) | varies=any | 配置。配置されたオブジェクトを返す |
| fileName |
File型
| | ファイル名 |
| [placePoint] |
[x, y]
| | 配置先の座標。x, yは数値型または文字列型 |
| [destinationLayer] |
Layer, Array( Layer )
| | 配置するレイヤー |
| [showingOptions] |
ブール型(既定値=false)
| | オプションのダイアログを表示するかどうか |
| [autoflowing] |
ブール型(既定値=false)
| | 自動流し込み |
| [retainingFormatting] |
ブール型(既定値=true)
| | フォーマットの保持 |
| [convertingQuotes] |
ブール型(既定値=true)
| | 英文引用符を使用 |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
place(fileName, [placePoint], [destinationLayer], [showingOptions], [autoflowing], [withProperties]) | varies=any | 配置。配置されたオブジェクトを返す |
| fileName |
File型
| | ファイル名 |
| [placePoint] |
[x, y]
| | 配置先の座標。x, yは数値型または文字列型 |
| [destinationLayer] |
Layer
| | 配置するレイヤー |
| [showingOptions] |
ブール型(既定値=false)
| | オプションのダイアログを表示するかどうか |
| [autoflowing] |
ブール型(既定値=false)
| | 自動流し込み |
| [withProperties] |
Object
| | プロパティの初期値を設定 |
  
   |
placeAndLink(parentStory, [placePoint], [destinationLayer], [showingOptions]) | Story | Create a linked story and place it into the target. |
| parentStory |
Story
| | 親のストーリー |
| [placePoint] |
[x, y]
| | 配置先の座標。x, yは数値型または文字列型 |
| [destinationLayer] |
Layer
| | 配置するレイヤー |
| [showingOptions] |
ブール型(既定値=false)
| | ダイアログを表示するかどうか |
  
   |
placeXML(using, placePoint, [autoflowing]) | PageItem | Places the XML element onto a page. If the place point is above an existing page item, place the XML element into the page item. |
| using |
XMLElement
| | |
| placePoint |
[x, y]
| | The point at which to place the object |
| [autoflowing] |
ブール型(既定値=false)
| | 自動流し込み |
  
   |
remove() | なし | 削除 |
  
   |
removeEventListener(eventType, handler, [captures]) | ブール型 | EventListenerを削除 |
| eventType |
文字列型
| | |
| handler |
File型, JavaScript関数
| | |
| [captures] |
ブール型(既定値=false)
| | This parameter is obsolete. |
  
   |
removeOverride() | なし | オーバーライドを削除 |
  
   |
resolve(location, in, [consideringRulerUnits]) | varies=any | Get the coordinates of the given location in the specified coordinate system. |
| location |
Array of 2 Reals, AnchorPoint, Array of Arrays of 2 Reals, CoordinateSpacess, AnchorPoints, BoundingBoxLimitss, Long Integers
AnchorPoint |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
BOTTOM_CENTER_ANCHOR | 1095656035 | 下辺の中央 |
  
   |
BOTTOM_LEFT_ANCHOR | 1095656044 | 左下角 |
  
   |
BOTTOM_RIGHT_ANCHOR | 1095656050 | 右下角 |
  
   |
CENTER_ANCHOR | 1095656308 | 中心 |
  
   |
LEFT_CENTER_ANCHOR | 1095658595 | 左辺の中央 |
  
   |
RIGHT_CENTER_ANCHOR | 1095660131 | 右辺の中央 |
  
   |
TOP_CENTER_ANCHOR | 1095660643 | 上辺の中央 |
  
   |
TOP_LEFT_ANCHOR | 1095660652 | 左上角 |
  
   |
TOP_RIGHT_ANCHOR | 1095660658 | 右上角 |
| | The location requested. |
| in |
CoordinateSpaces
CoordinateSpaces |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
INNER_COORDINATES | 2021222766 | Inner coordinates |
  
   |
PARENT_COORDINATES | 2021224545 | Parent coordinates |
  
   |
PASTEBOARD_COORDINATES | 2021224546 | Pasteboard coordinates |
  
   |
SPREAD_COORDINATES | 2021225328 | Spread coordinates. |
| | |
| [consideringRulerUnits] |
ブール型(既定値=false)
| | ルーラの単位を使うかどうか |
  
   |
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. |
  
   |
toSource() | 文字列型 | |
  
   |
toSpecifier() | 文字列型 | |
  
   |
transform(in, from, withMatrix, [replacingCurrent], [consideringRulerUnits]) | なし | Transform the page item. |
| in |
CoordinateSpaces
CoordinateSpaces |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
INNER_COORDINATES | 2021222766 | Inner coordinates |
  
   |
PARENT_COORDINATES | 2021224545 | Parent coordinates |
  
   |
PASTEBOARD_COORDINATES | 2021224546 | Pasteboard coordinates |
  
   |
SPREAD_COORDINATES | 2021225328 | Spread coordinates. |
| | |
| from |
Array of 2 Reals, AnchorPoint, Array of Arrays of 2 Reals, CoordinateSpacess, AnchorPoints, BoundingBoxLimitss, Long Integers
AnchorPoint |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
BOTTOM_CENTER_ANCHOR | 1095656035 | 下辺の中央 |
  
   |
BOTTOM_LEFT_ANCHOR | 1095656044 | 左下角 |
  
   |
BOTTOM_RIGHT_ANCHOR | 1095656050 | 右下角 |
  
   |
CENTER_ANCHOR | 1095656308 | 中心 |
  
   |
LEFT_CENTER_ANCHOR | 1095658595 | 左辺の中央 |
  
   |
RIGHT_CENTER_ANCHOR | 1095660131 | 右辺の中央 |
  
   |
TOP_CENTER_ANCHOR | 1095660643 | 上辺の中央 |
  
   |
TOP_LEFT_ANCHOR | 1095660652 | 左上角 |
  
   |
TOP_RIGHT_ANCHOR | 1095660658 | 右上角 |
| | The temporary origin during the transformation. |
| withMatrix |
Array of 6 Reals, TransformationMatrix
| | Transform matrix. |
| [replacingCurrent] |
MatrixContent, Array( MatrixContent ), 数値型
MatrixContent |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
ROTATION_VALUE | 1936746862 | Rotation value |
  
   |
SCALE_VALUES | 1735552887 | Scale values |
  
   |
SHEAR_VALUE | 1936486004 | Shear value |
  
   |
TRANSLATION_VALUES | 1936484720 | Translation values |
| | Transform components to consider; providing this optional parameter causes the target's existing transform components to be replaced with new values. Without this parameter, the given matrix is concatenated onto the target's existing transform combining the effect of the two. |
| [consideringRulerUnits] |
ブール型(既定値=false)
| | ルーラの単位を使うかどうか |
  
   |
transformValuesOf(in) | TransformationMatrix | Get the transformation values of the page item. |
| in |
CoordinateSpaces
CoordinateSpaces |
---|
Ver. | 値 | 10進数 | 説明 |
  
   |
INNER_COORDINATES | 2021222766 | Inner coordinates |
  
   |
PARENT_COORDINATES | 2021224545 | Parent coordinates |
  
   |
PASTEBOARD_COORDINATES | 2021224546 | Pasteboard coordinates |
  
   |
SPREAD_COORDINATES | 2021225328 | Spread coordinates. |
| | |