Layer(レイヤー)のコレクション
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
length | ○ | 数値 | オブジェクト数 |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
add([withProperties]) | Layer | 新しいオブジェクトを作成し、それを返す | |||
[withProperties] | Object | プロパティを設定 | |||
anyItem() | Layer | どれかのオブジェクトを返す | |||
count() | 数値 | 要素数を返す | |||
everyItem() | Array( Layer ) | 全てのオブジェクトを返す | |||
firstItem() | Layer | 最初のオブジェクトを返す | |||
item(index) | Layer | インデックスまたは名前で指定したオブジェクトを返す | |||
index | 数値, 文字列値 | インデックスまたは名前 | |||
itemByID(id) | Layer | IDで指定したオブジェクトを返す | |||
id | 数値 | ||||
itemByName(name) | Layer | 名前で指定したオブジェクトを返す | |||
name | 文字列値 | ||||
itemByRange(from, to) | Array( Layer ) | 範囲で指定したオブジェクトを返す | |||
from | Layer, 数値, 文字列値 | 範囲の開始 | |||
to | Layer, 数値, 文字列値 | 範囲の終了 | |||
lastItem() | Layer | 最後のオブジェクトを返す | |||
middleItem() | Layer | 真ん中のオブジェクトを返す | |||
nextItem(obj) | Layer | 一つ後のオブジェクトを返す | |||
obj | Layer | 位置の基準になるオブジェクト | |||
previousItem(obj) | Layer | 一つ前のオブジェクトを返す | |||
obj | Layer | 位置の基準になるオブジェクト | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す |
レイヤー
Ver. | プロパティ | R/O | 値 |
---|---|---|---|
parent | ○ | Document | |
eventListeners | ○ | EventListeners | |
events | ○ | Events |
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
allGraphics | ○ | Array( Graphic ) | 中にある画像(グループを無視) | |
allPageItems | ○ | Array( PageItem ) | 中にあるPageItem(グループを無視) | |
buttons | ○ | Buttons | ボタンオブジェクト | |
checkBoxes | ○ | CheckBoxes | PDFフォーム(チェックボックス) | |
comboBoxes | ○ | ComboBoxes | PDFフォーム(コンボボックス) | |
endnoteTextFrames | ○ | EndnoteTextFrames | 後注テキストフレーム | |
epstexts | ○ | EPSTexts | イラストレータからコピーしてきたテキスト | |
formFields | ○ | FormFields | フォームフィールド | |
graphicLines | ○ | GraphicLines | 直線オブジェクト | |
groups | ○ | Groups | オブジェクトのグループ | |
guides | ○ | Guides | ガイド | |
id | ○ | 数値 | オブジェクトのID | |
ignoreWrap | 真偽値 | テキストの回り込みを無視 | ||
index | ○ | 数値 | インデックス | |
isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
label | 文字列値 | スクリプトラベル | ||
layerColor | [ r, g, b ], UIColors | レイヤーの表示色 | ||
listBoxes | ○ | ListBoxes | PDFフォーム(リストボックス) | |
locked | 真偽値 | ロックされているか | ||
lockGuides | 真偽値 | ガイドのロック | ||
multiStateObjects | ○ | MultiStateObjects | マルチステートオブジェクト | |
name | 文字列値 | オブジェクトの名前 | ||
ovals | ○ | Ovals | 楕円 | |
pageItems | ○ | PageItems | スプレッド上のオブジェクト | |
polygons | ○ | Polygons | 多角形 | |
printable | 真偽値 | 印刷可能 | ||
properties | Object | |||
radioButtons | ○ | RadioButtons | PDFフォーム(ラジオボタン) | |
rectangles | ○ | Rectangles | 長方形 | |
showGuides | 真偽値 | ガイドの表示 | ||
signatureFields | ○ | SignatureFields | PDFフォーム(署名フィールド) | |
splineItems | ○ | SplineItems | 図形 | |
textBoxes | ○ | TextBoxes | PDFフォーム(テキストフィールド) | |
textFrames | ○ | TextFrames | テキストフレーム | |
visible | 真偽値 | 表示するかどうか |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||||||||||||||||||||||||||||||
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||||||||||||||||||||||||||||||
eventType | 文字列値 | ||||||||||||||||||||||||||||||||
handler | ファイル, JavaScript関数 | ||||||||||||||||||||||||||||||||
[captures] | 真偽値 | (廃止) | |||||||||||||||||||||||||||||||
duplicate() | Layer | 複製。複製されたオブジェクトを返す | |||||||||||||||||||||||||||||||
extractLabel(key) | 文字列値 | キーに関連づけられた値を取得 | |||||||||||||||||||||||||||||||
key | 文字列値 | キー | |||||||||||||||||||||||||||||||
getElements() | Array( Layer ) | オブジェクト参照を返す | |||||||||||||||||||||||||||||||
insertLabel(key, value) | なし | キーに関連づけられた値を設定 | |||||||||||||||||||||||||||||||
key | 文字列値 | キー | |||||||||||||||||||||||||||||||
value | 文字列値 | 値 | |||||||||||||||||||||||||||||||
merge(with) | Layer | レイヤーの結合 | |||||||||||||||||||||||||||||||
with | Array( Layer ) | 結合するレイヤー | |||||||||||||||||||||||||||||||
move(to, [reference]) | Layer | 移動 | |||||||||||||||||||||||||||||||
to |
LocationOptions
| 移動先 | |||||||||||||||||||||||||||||||
[reference] | Layer | 位置の基準になるオブジェクト | |||||||||||||||||||||||||||||||
remove() | なし | 削除 | |||||||||||||||||||||||||||||||
removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||||||||||||||||||||||||||||||
eventType | 文字列値 | ||||||||||||||||||||||||||||||||
handler | ファイル, JavaScript関数 | ||||||||||||||||||||||||||||||||
[captures] | 真偽値 | (廃止) | |||||||||||||||||||||||||||||||
toSource() | 文字列値 | ソースコードを表す文字列を返す | |||||||||||||||||||||||||||||||
toSpecifier() | 文字列値 | Retrieves the object specifier. |