Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
|
add([to], [reference], [withProperties]) |
TextVariableInstance | 新しいオブジェクトを作成し、それを返す |
| [to] |
LocationOptions
LocationOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| AFTER | 1634104421 afte | 後 |
| AT_BEGINNING | 1650945639 bgng | 先頭 |
| AT_END | 1701733408 end | 最後 |
| BEFORE | 1650812527 befo | 前 |
| UNKNOWN | 1433299822 Unkn | No location |
| | 追加先 (既定値=LocationOptions.UNKNOWN) |
| [reference] |
TextVariableInstance, XmlStory, TextFrame, Story, Note, Cell, Footnote, Table, TextColumn, TextStyleRange, Text, InsertionPoint, Paragraph, Line, Word, Character, Change | | 位置の基準になるオブジェクト |
| [withProperties] |
Object | | プロパティを設定 |
|
anyItem() |
TextVariableInstance | どれかのオブジェクトを返す |
|
count() |
数値 | 要素数を返す |
|
everyItem() |
Array( TextVariableInstance ) | 全てのオブジェクトを返す |
|
firstItem() |
TextVariableInstance | 最初のオブジェクトを返す |
|
item(index) |
TextVariableInstance | インデックスまたは名前で指定したオブジェクトを返す |
| index |
数値, 文字列値 | | インデックスまたは名前 |
|
itemByID(id) |
TextVariableInstance | IDで指定したオブジェクトを返す |
| id |
数値 | | |
|
itemByName(name) |
TextVariableInstance | 名前で指定したオブジェクトを返す |
| name |
文字列値 | | |
|
itemByRange(from, to) |
Array( TextVariableInstance ) | 範囲で指定したオブジェクトを返す |
| from |
TextVariableInstance, 数値, 文字列値 | | 範囲の開始 |
| to |
TextVariableInstance, 数値, 文字列値 | | 範囲の終了 |
|
lastItem() |
TextVariableInstance | 最後のオブジェクトを返す |
|
middleItem() |
TextVariableInstance | 真ん中のオブジェクトを返す |
|
nextItem(obj) |
TextVariableInstance | 一つ後のオブジェクトを返す |
| obj |
TextVariableInstance | | 位置の基準になるオブジェクト |
|
previousItem(obj) |
TextVariableInstance | 一つ前のオブジェクトを返す |
| obj |
TextVariableInstance | | 位置の基準になるオブジェクト |
|
toSource() |
文字列値 | ソースコードを表す文字列を返す |