Section(セクション)のコレクション
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
length | ○ | 数値 | オブジェクト数 |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
add([reference], [withProperties]) | Section | 新しいオブジェクトを作成し、それを返す | |||
[reference] | Page | 位置の基準になるオブジェクト | |||
[withProperties] | Object | プロパティを設定 | |||
anyItem() | Section | どれかのオブジェクトを返す | |||
count() | 数値 | 要素数を返す | |||
everyItem() | Array( Section ) | 全てのオブジェクトを返す | |||
firstItem() | Section | 最初のオブジェクトを返す | |||
item(index) | Section | インデックスまたは名前で指定したオブジェクトを返す | |||
index | 数値, 文字列値 | インデックスまたは名前 | |||
itemByID(id) | Section | IDで指定したオブジェクトを返す | |||
id | 数値 | ||||
itemByName(name) | Section | 名前で指定したオブジェクトを返す | |||
name | 文字列値 | ||||
itemByRange(from, to) | Array( Section ) | 範囲で指定したオブジェクトを返す | |||
from | Section, 数値, 文字列値 | 範囲の開始 | |||
to | Section, 数値, 文字列値 | 範囲の終了 | |||
lastItem() | Section | 最後のオブジェクトを返す | |||
middleItem() | Section | 真ん中のオブジェクトを返す | |||
nextItem(obj) | Section | 一つ後のオブジェクトを返す | |||
obj | Section | 位置の基準になるオブジェクト | |||
previousItem(obj) | Section | 一つ前のオブジェクトを返す | |||
obj | Section | 位置の基準になるオブジェクト | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す |
セクション
Ver. | プロパティ | R/O | 値 |
---|---|---|---|
parent | ○ | Document | |
eventListeners | ○ | EventListeners | |
events | ○ | Events |
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
alternateLayout | 文字列値 | 代替レイアウト名 | ||
alternateLayoutLength | ○ | 数値 | 代替レイアウトのページ数 | |
continueNumbering | 真偽値 | trueで自動ページ番号 | ||
id | ○ | 数値 | オブジェクトのID | |
includeSectionPrefix | 真偽値 | If true, places the specified prefix before page numbers on all pages in the section. | ||
index | ○ | 数値 | インデックス | |
isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
label | 文字列値 | スクリプトラベル | ||
length | ○ | 数値 | ページ数 | |
marker | 文字列値 | The section marker. | ||
name | 文字列値 | オブジェクトの名前 | ||
pageNumberStart | 数値 | The page number assigned to the first page in the section. Note: Valid only when continue numbering is false. (1 - 999999) | ||
pageNumberStyle | PageNumberStyle, 文字列値 | The page number style. | ||
pageStart | Page | The start page for the section. | ||
properties | Object | |||
sectionPrefix | 文字列値 | The prefix to place before page numbers on pages in the section. May include up to 8 characters. Note: Valid only when include section prefix is true. |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
extractLabel(key) | 文字列値 | キーに関連づけられた値を取得 | |||
key | 文字列値 | キー | |||
getElements() | Array( Section ) | オブジェクト参照を返す | |||
insertLabel(key, value) | なし | キーに関連づけられた値を設定 | |||
key | 文字列値 | キー | |||
value | 文字列値 | 値 | |||
remove() | なし | 削除 | |||
removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
toSpecifier() | 文字列値 | Retrieves the object specifier. |