TOCStyleEntry(目次スタイルの各要素)のコレクション
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| length | ○ | 数値 | オブジェクト数 |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| add([styleName], [withProperties]) | TOCStyleEntry | 新しいオブジェクトを追加 | |||
| [styleName] | 文字列値 | 段落スタイル名 | |||
| [withProperties] | Object | プロパティを設定 | |||
| anyItem() | TOCStyleEntry | どれかのオブジェクトを返す | |||
| count() | 数値 | 要素数を返す | |||
| everyItem() | TOCStyleEntry (Array) | 全てのオブジェクトを返す | |||
| firstItem() | TOCStyleEntry | 最初のオブジェクトを返す | |||
| item(index) | TOCStyleEntry | インデックスまたは名前で指定したオブジェクトを返す | |||
| index | 数値, 文字列値 | インデックスまたは名前 | |||
| itemByName(name) | TOCStyleEntry | 名前で指定したオブジェクトを返す | |||
| name | 文字列値 | ||||
| itemByRange(from, to) | TOCStyleEntry (Array) | 範囲で指定したオブジェクトを返す | |||
| from | TOCStyleEntry, 数値, 文字列値 | 範囲の開始 | |||
| to | TOCStyleEntry, 数値, 文字列値 | 範囲の終了 | |||
| lastItem() | TOCStyleEntry | 最後のオブジェクトを返す | |||
| middleItem() | TOCStyleEntry | 真ん中のオブジェクトを返す | |||
| nextItem(obj) | TOCStyleEntry | 一つ後のオブジェクトを返す | |||
| obj | TOCStyleEntry | 位置の基準になるオブジェクト | |||
| previousItem(obj) | TOCStyleEntry | 一つ前のオブジェクトを返す | |||
| obj | TOCStyleEntry | 位置の基準になるオブジェクト | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
目次スタイルの各要素
| Ver. | プロパティ | R/O | 値 |
|---|---|---|---|
| parent | ○ | TOCStyle | |
| eventListeners | ○ | EventListeners | |
| events | ○ | Events | |
| Ver. | プロパティ名 | R/O | 値 | 説明 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| formatStyle | ParagraphStyle, 文字列値 | The paragraph style applied to the TOC entry. | ||||||||||||||||||||||
| index | ○ | 数値 | インデックス | |||||||||||||||||||||
| isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |||||||||||||||||||||
| level | 数値 | 目次レベル | ||||||||||||||||||||||
| name | 文字列値 | オブジェクトの名前 | ||||||||||||||||||||||
| pageNumberPosition |
PageNumberPosition
| The page number placement for the TOC entry style. | ||||||||||||||||||||||
| pageNumberStyle | CharacterStyle, 文字列値 | ページ番号の文字スタイル | ||||||||||||||||||||||
| properties | Object | |||||||||||||||||||||||
| separator | 文字列値 | The string to insert between the entry text and the page numbers. | ||||||||||||||||||||||
| separatorStyle | CharacterStyle, 文字列値 | 項目とページ番号の間の文字スタイル | ||||||||||||||||||||||
| sortAlphabet | 真偽値 | If true, sorts the entries alphabetically. | ||||||||||||||||||||||
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| getElements() | Array( TOCStyleEntry ) | オブジェクト参照を返す | |||
| remove() | なし | 削除 | |||
| removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
| toSpecifier() | 文字列値 | Retrieves the object specifier. | |||