BuildingBlock(ハイパーリンクの定義)のコレクション
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| length | ○ | 数値 | オブジェクト数 |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||||||||||||||||||||||||||||||||||||||||||
| add(blockType, [appliedCharacterStyle], [customText], [withProperties]) | BuildingBlock | 新しいオブジェクトを作成し、それを返す | |||||||||||||||||||||||||||||||||||||||||||
| blockType |
BuildingBlockTypes
| ||||||||||||||||||||||||||||||||||||||||||||
| [appliedCharacterStyle] | CharacterStyle | 適用される文字スタイル | |||||||||||||||||||||||||||||||||||||||||||
| [customText] | 文字列値 | ||||||||||||||||||||||||||||||||||||||||||||
| [withProperties] | Object | プロパティを設定 | |||||||||||||||||||||||||||||||||||||||||||
| anyItem() | BuildingBlock | どれかのオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| count() | 数値 | 要素数を返す | |||||||||||||||||||||||||||||||||||||||||||
| everyItem() | BuildingBlock (Array) | 全てのオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| firstItem() | BuildingBlock | 最初のオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| item(index) | BuildingBlock | インデックスまたは名前で指定したオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| index | 数値, 文字列値 | インデックスまたは名前 | |||||||||||||||||||||||||||||||||||||||||||
| itemByRange(from, to) | BuildingBlock (Array) | 範囲で指定したオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| from | BuildingBlock, 数値, 文字列値 | 範囲の開始 | |||||||||||||||||||||||||||||||||||||||||||
| to | BuildingBlock, 数値, 文字列値 | 範囲の終了 | |||||||||||||||||||||||||||||||||||||||||||
| lastItem() | BuildingBlock | 最後のオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| middleItem() | BuildingBlock | 真ん中のオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| nextItem(obj) | BuildingBlock | 一つ後のオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| obj | BuildingBlock | 位置の基準になるオブジェクト | |||||||||||||||||||||||||||||||||||||||||||
| previousItem(obj) | BuildingBlock | 一つ前のオブジェクトを返す | |||||||||||||||||||||||||||||||||||||||||||
| obj | BuildingBlock | 位置の基準になるオブジェクト | |||||||||||||||||||||||||||||||||||||||||||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||||||||||||||||||||||||||||||||||||||||||
ハイパーリンクの定義
| Ver. | プロパティ | R/O | 値 |
|---|---|---|---|
| parent | ○ | CrossReferenceFormat | |
| eventListeners | ○ | EventListeners | |
| events | ○ | Events | |
| Ver. | プロパティ名 | R/O | 値 | 説明 | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| appliedCharacterStyle | CharacterStyle | 適用される文字スタイル | ||||||||||||||||||||||||||||||||||||||||||
| appliedDelimiter | 文字列値 | Delimiter character for paragraph text and full paragraph building blocks. It is ignored for other types of building blocks. | ||||||||||||||||||||||||||||||||||||||||||
| blockType |
BuildingBlockTypes
| Type of the building block. | ||||||||||||||||||||||||||||||||||||||||||
| customText | 文字列値 | Building block custom text. Currently this is only useful in custom string building block. It is ignored for other types of building blocks. | ||||||||||||||||||||||||||||||||||||||||||
| includeDelimiter | 真偽値 | If true, the source generated for the building block includes the delimiter. It is ignored if no delimiter is specified on the building block. | ||||||||||||||||||||||||||||||||||||||||||
| index | ○ | 数値 | インデックス | |||||||||||||||||||||||||||||||||||||||||
| isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |||||||||||||||||||||||||||||||||||||||||
| properties | Object | |||||||||||||||||||||||||||||||||||||||||||
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| getElements() | Array( BuildingBlock ) | オブジェクト参照を返す | |||
| remove() | なし | 削除 | |||
| removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
| toSpecifier() | 文字列値 | Retrieves the object specifier. | |||