「マクロリファレンス:3:Document オブジェクト」の版間の差分
細 「マクロリファレンス:3:Document オブジェクト」を保護しました ([編集=管理者のみ許可] (無期限) [移動=管理者のみ許可] (無期限)) [カスケード] |
編集の要約なし |
||
| 4行目: | 4行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Activate(); | document.Activate(); | ||
</ | </syntaxhighlight> | ||
==Close メソッド== | ==Close メソッド== | ||
| 12行目: | 12行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Close(); | document.Close(); | ||
</ | </syntaxhighlight> | ||
==CopyFullName メソッド== | ==CopyFullName メソッド== | ||
| 20行目: | 20行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.CopyFullName(); | document.CopyFullName(); | ||
</ | </syntaxhighlight> | ||
==CopyPath メソッド== | ==CopyPath メソッド== | ||
| 28行目: | 28行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.CopyPath(); | document.CopyPath(); | ||
</ | </syntaxhighlight> | ||
==GetLine メソッド== | ==GetLine メソッド== | ||
| 36行目: | 36行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.GetLine(line [, flags]); | var s = document.GetLine(line [, flags]); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 55行目: | 55行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var count = document.GetLines([flags]); | var count = document.GetLines([flags]); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 70行目: | 70行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Redo(); | document.Redo(); | ||
</ | </syntaxhighlight> | ||
==Save メソッド== | ==Save メソッド== | ||
| 78行目: | 78行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Save([fileName]); | document.Save([fileName]); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 90行目: | 90行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Undo(); | document.Undo(); | ||
</ | </syntaxhighlight> | ||
==Write メソッド== | ==Write メソッド== | ||
| 98行目: | 98行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Write(str); | document.Write(str); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 110行目: | 110行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
document.Writeln(str); | document.Writeln(str); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 123行目: | 123行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var encoding = document.Encoding; | var encoding = document.Encoding; | ||
document.Encoding = encoding; | document.Encoding = encoding; | ||
</ | </syntaxhighlight> | ||
;値 | ;値 | ||
| 187行目: | 187行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.FullName; | var s = document.FullName; | ||
</ | </syntaxhighlight> | ||
==HighlightFind プロパティ== | ==HighlightFind プロパティ== | ||
| 195行目: | 195行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var b = document.HighlightFind; | var b = document.HighlightFind; | ||
document.HighlightFind = b; | document.HighlightFind = b; | ||
</ | </syntaxhighlight> | ||
==IndentSize プロパティ== | ==IndentSize プロパティ== | ||
| 204行目: | 204行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var i = document.IndentSize; | var i = document.IndentSize; | ||
document.IndentSize = i; | document.IndentSize = i; | ||
</ | </syntaxhighlight> | ||
==IndentStyle プロパティ== | ==IndentStyle プロパティ== | ||
| 213行目: | 213行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var indentStyle = document.IndentStyle; | var indentStyle = document.IndentStyle; | ||
document.IndentStyle = indentStyle; | document.IndentStyle = indentStyle; | ||
</ | </syntaxhighlight> | ||
;値 | ;値 | ||
| 231行目: | 231行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var triBool = document.InsertFinalNewLine; | var triBool = document.InsertFinalNewLine; | ||
document.InsertFinalNewLine = triBool; | document.InsertFinalNewLine = triBool; | ||
</ | </syntaxhighlight> | ||
;値 | ;値 | ||
| 249行目: | 249行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var lineEnding = document.LineEnding; | var lineEnding = document.LineEnding; | ||
document.LineEnding = lineEnding; | document.LineEnding = lineEnding; | ||
</ | </syntaxhighlight> | ||
;値 | ;値 | ||
| 267行目: | 267行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.Mode; | var s = document.Mode; | ||
document.Mode = s; | document.Mode = s; | ||
</ | </syntaxhighlight> | ||
==Name プロパティ== | ==Name プロパティ== | ||
| 276行目: | 276行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.Name; | var s = document.Name; | ||
</ | </syntaxhighlight> | ||
==Path プロパティ== | ==Path プロパティ== | ||
| 284行目: | 284行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.Path; | var s = document.Path; | ||
</ | </syntaxhighlight> | ||
==ReadOnly プロパティ== | ==ReadOnly プロパティ== | ||
| 292行目: | 292行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var b = document.ReadOnly; | var b = document.ReadOnly; | ||
document.ReadOnly = b; | document.ReadOnly = b; | ||
</ | </syntaxhighlight> | ||
==Saved プロパティ== | ==Saved プロパティ== | ||
| 301行目: | 301行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var b = document.Saved; | var b = document.Saved; | ||
document.Saved = b; | document.Saved = b; | ||
</ | </syntaxhighlight> | ||
==Selection プロパティ== | ==Selection プロパティ== | ||
| 310行目: | 310行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var sel = document.Selection; | var sel = document.Selection; | ||
</ | </syntaxhighlight> | ||
==Tag プロパティ== | ==Tag プロパティ== | ||
| 318行目: | 318行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var dic = document.Tag; | var dic = document.Tag; | ||
</ | </syntaxhighlight> | ||
;例 | ;例 | ||
< | <syntaxhighlight lang="javascript"> | ||
var dic = document.Tag; | var dic = document.Tag; | ||
if (!dic.exists("key1")) { | if (!dic.exists("key1")) { | ||
| 329行目: | 329行目: | ||
} | } | ||
alert(dic("key1")); | alert(dic("key1")); | ||
</ | </syntaxhighlight> | ||
==Text プロパティ== | ==Text プロパティ== | ||
| 335行目: | 335行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = document.Text; | var s = document.Text; | ||
document.Text = s; | document.Text = s; | ||
</ | </syntaxhighlight> | ||
==TextLength プロパティ== | ==TextLength プロパティ== | ||
| 344行目: | 344行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var i = document.TextLength; | var i = document.TextLength; | ||
</ | </syntaxhighlight> | ||
==TrimTrailingWhiteSpace プロパティ== | ==TrimTrailingWhiteSpace プロパティ== | ||
| 352行目: | 352行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var b = document.TrimTrailingWhiteSpace; | var b = document.TrimTrailingWhiteSpace; | ||
document.TrimTrailingWhiteSpace= b; | document.TrimTrailingWhiteSpace= b; | ||
</ | </syntaxhighlight> | ||
スポンサーリンク