State(オブジェクトステート)のコレクション
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
length | ○ | 数値 | オブジェクト数 |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
add([withProperties]) | State | 新しいオブジェクトを作成し、それを返す | |||
[withProperties] | Object | プロパティを設定 | |||
anyItem() | State | どれかのオブジェクトを返す | |||
count() | 数値 | 要素数を返す | |||
everyItem() | Array( State ) | 全てのオブジェクトを返す | |||
firstItem() | State | 最初のオブジェクトを返す | |||
item(index) | State | インデックスまたは名前で指定したオブジェクトを返す | |||
index | 数値, 文字列値 | インデックスまたは名前 | |||
itemByID(id) | State | IDで指定したオブジェクトを返す | |||
id | 数値 | ||||
itemByName(name) | State | 名前で指定したオブジェクトを返す | |||
name | 文字列値 | ||||
itemByRange(from, to) | Array( State ) | 範囲で指定したオブジェクトを返す | |||
from | State, 数値, 文字列値 | 範囲の開始 | |||
to | State, 数値, 文字列値 | 範囲の終了 | |||
lastItem() | State | 最後のオブジェクトを返す | |||
middleItem() | State | 真ん中のオブジェクトを返す | |||
nextItem(obj) | State | 一つ後のオブジェクトを返す | |||
obj | State | 位置の基準になるオブジェクト | |||
previousItem(obj) | State | 一つ前のオブジェクトを返す | |||
obj | State | 位置の基準になるオブジェクト | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す |
オブジェクトステート
Ver. | プロパティ | R/O | 値 |
---|---|---|---|
parent | ○ | Button, MultiStateObject, CheckBox, RadioButton | |
endnoteTextFrames | ○ | EndnoteTextFrames | |
epss | ○ | EPSs | |
epstexts | ○ | EPSTexts | |
eventListeners | ○ | EventListeners | |
events | ○ | Events | |
graphicLines | ○ | GraphicLines | |
graphics | ○ | Graphics | |
groups | ○ | Groups | |
images | ○ | Images | |
ovals | ○ | Ovals | |
pageItems | ○ | PageItems | |
pdfs | ○ | PDFs | |
picts | ○ | PICTs | |
polygons | ○ | Polygons | |
rectangles | ○ | Rectangles | |
splineItems | ○ | SplineItems | |
svgs | ○ | SVGs | |
textFrames | ○ | TextFrames | |
wmfs | ○ | WMFs |
Ver. | プロパティ名 | R/O | 値 | 説明 | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
active | 真偽値 | If true, the state is active in the exported PDF. | ||||||||||||||||||||||||||||||||||||||||||||||
enabled | 真偽値 | If true, the state is enabled in PDF documents. | ||||||||||||||||||||||||||||||||||||||||||||||
id | ○ | 数値 | オブジェクトのID | |||||||||||||||||||||||||||||||||||||||||||||
index | ○ | 数値 | インデックス | |||||||||||||||||||||||||||||||||||||||||||||
isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |||||||||||||||||||||||||||||||||||||||||||||
name | 文字列値 | オブジェクトの名前 | ||||||||||||||||||||||||||||||||||||||||||||||
properties | Object | |||||||||||||||||||||||||||||||||||||||||||||||
statetype |
StateTypes, 数値
| For a button, the type of user action that dictates the object's appearance. For a MultiStateObject, which has no user actions associated with states, this property is a numeric value uniquely identifying the state. |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
addItemsToState(pageitems) | なし | ステートにページアイテムを追加 | |||
pageitems | Array( PageItem ) | ステートとして追加するページアイテム | |||
getElements() | Array( State ) | オブジェクト参照を返す | |||
move(newPosition) | なし | 移動 | |||
newPosition | 数値 | ||||
releaseAsObject() | なし | ステートをオブジェクトにリリース | |||
remove() | なし | 削除 | |||
removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
toSpecifier() | 文字列値 | Retrieves the object specifier. |