TOCStyle(目次スタイル)のコレクション
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| length | ○ | 数値 | オブジェクト数 |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| add([withProperties]) | TOCStyle | 新しいオブジェクトを作成し、それを返す | |||
| [withProperties] | Object | プロパティを設定 | |||
| anyItem() | TOCStyle | どれかのオブジェクトを返す | |||
| count() | 数値 | 要素数を返す | |||
| everyItem() | TOCStyle (Array) | 全てのオブジェクトを返す | |||
| firstItem() | TOCStyle | 最初のオブジェクトを返す | |||
| item(index) | TOCStyle | インデックスまたは名前で指定したオブジェクトを返す | |||
| index | 数値, 文字列値 | インデックスまたは名前 | |||
| itemByID(id) | TOCStyle | IDで指定したオブジェクトを返す | |||
| id | 数値 | ||||
| itemByName(name) | TOCStyle | 名前で指定したオブジェクトを返す | |||
| name | 文字列値 | ||||
| itemByRange(from, to) | TOCStyle (Array) | 範囲で指定したオブジェクトを返す | |||
| from | TOCStyle, 数値, 文字列値 | 範囲の開始 | |||
| to | TOCStyle, 数値, 文字列値 | 範囲の終了 | |||
| lastItem() | TOCStyle | 最後のオブジェクトを返す | |||
| middleItem() | TOCStyle | 真ん中のオブジェクトを返す | |||
| nextItem(obj) | TOCStyle | 一つ後のオブジェクトを返す | |||
| obj | TOCStyle | 位置の基準になるオブジェクト | |||
| previousItem(obj) | TOCStyle | 一つ前のオブジェクトを返す | |||
| obj | TOCStyle | 位置の基準になるオブジェクト | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
目次スタイル
| Ver. | プロパティ | R/O | 値 |
|---|---|---|---|
| parent | ○ | Document | |
| eventListeners | ○ | EventListeners | |
| events | ○ | Events | |
| tocStyleEntries | ○ | TOCStyleEntries | |
| Ver. | プロパティ名 | R/O | 値 | 説明 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| createBookmarks | 真偽値 | PDFブックマークを作成 | ||||||||||||||||||||||
| id | ○ | 数値 | オブジェクトのID | |||||||||||||||||||||
| includeBookDocuments | 真偽値 | ブックのドキュメントを含む | ||||||||||||||||||||||
| includeHidden | 真偽値 | 非表示レイヤーのテキストを含むかどうか。trueで含む | ||||||||||||||||||||||
| index | ○ | 数値 | インデックス | |||||||||||||||||||||
| isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |||||||||||||||||||||
| label | 文字列値 | スクリプトラベル | ||||||||||||||||||||||
| makeAnchor | 真偽値 | ソース段落にテキストアンカーを作成するかどうか | ||||||||||||||||||||||
| name | 文字列値 | オブジェクトの名前 | ||||||||||||||||||||||
| numberedParagraphs |
NumberedParagraphsOptions
| 段落の自動番号 | ||||||||||||||||||||||
| properties | Object | |||||||||||||||||||||||
| removeForcedLineBreak | 真偽値 | 強制改行を削除 | ||||||||||||||||||||||
| runIn | 真偽値 | If true, the lowest-level TOC entries are placed on the same line as the previous entry. | ||||||||||||||||||||||
| setStoryDirection |
HorizontalOrVertical
| 組方向 | ||||||||||||||||||||||
| title | 文字列値 | タイトル | ||||||||||||||||||||||
| titleStyle | ParagraphStyle | タイトルの段落スタイル | ||||||||||||||||||||||
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| duplicate() | TOCStyle | 複製。複製されたオブジェクトを返す | |||
| extractLabel(key) | 文字列値 | キーに関連づけられた値を取得 | |||
| key | 文字列値 | キー | |||
| getElements() | Array( TOCStyle ) | オブジェクト参照を返す | |||
| insertLabel(key, value) | なし | キーに関連づけられた値を設定 | |||
| key | 文字列値 | キー | |||
| value | 文字列値 | 値 | |||
| remove() | なし | 削除 | |||
| removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
| toSpecifier() | 文字列値 | Retrieves the object specifier. | |||