「マクロリファレンス:3:Document オブジェクト」の版間の差分

細 「マクロリファレンス:3:Document オブジェクト」を保護しました ([編集=管理者のみ許可] (無期限) [移動=管理者のみ許可] (無期限)) [カスケード]
編集の要約なし
4行目: 4行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Activate();
document.Activate();
</source>
</syntaxhighlight>


==Close メソッド==
==Close メソッド==
12行目: 12行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Close();
document.Close();
</source>
</syntaxhighlight>


==CopyFullName メソッド==
==CopyFullName メソッド==
20行目: 20行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.CopyFullName();
document.CopyFullName();
</source>
</syntaxhighlight>


==CopyPath メソッド==
==CopyPath メソッド==
28行目: 28行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.CopyPath();
document.CopyPath();
</source>
</syntaxhighlight>


==GetLine メソッド==
==GetLine メソッド==
36行目: 36行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.GetLine(line [, flags]);
var s = document.GetLine(line [, flags]);
</source>
</syntaxhighlight>


;引数
;引数
55行目: 55行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var count = document.GetLines([flags]);
var count = document.GetLines([flags]);
</source>
</syntaxhighlight>


;引数
;引数
70行目: 70行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Redo();
document.Redo();
</source>
</syntaxhighlight>


==Save メソッド==
==Save メソッド==
78行目: 78行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Save([fileName]);
document.Save([fileName]);
</source>
</syntaxhighlight>


;引数
;引数
90行目: 90行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Undo();
document.Undo();
</source>
</syntaxhighlight>


==Write メソッド==
==Write メソッド==
98行目: 98行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Write(str);
document.Write(str);
</source>
</syntaxhighlight>


;引数
;引数
110行目: 110行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
document.Writeln(str);
document.Writeln(str);
</source>
</syntaxhighlight>


;引数
;引数
123行目: 123行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var encoding = document.Encoding;
var encoding = document.Encoding;
document.Encoding = encoding;
document.Encoding = encoding;
</source>
</syntaxhighlight>


;値
;値
187行目: 187行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.FullName;
var s = document.FullName;
</source>
</syntaxhighlight>


==HighlightFind プロパティ==
==HighlightFind プロパティ==
195行目: 195行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var b = document.HighlightFind;
var b = document.HighlightFind;
document.HighlightFind = b;
document.HighlightFind = b;
</source>
</syntaxhighlight>


==IndentSize プロパティ==
==IndentSize プロパティ==
204行目: 204行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var i = document.IndentSize;
var i = document.IndentSize;
document.IndentSize = i;
document.IndentSize = i;
</source>
</syntaxhighlight>


==IndentStyle プロパティ==
==IndentStyle プロパティ==
213行目: 213行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var indentStyle = document.IndentStyle;
var indentStyle = document.IndentStyle;
document.IndentStyle = indentStyle;
document.IndentStyle = indentStyle;
</source>
</syntaxhighlight>


;値
;値
231行目: 231行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var triBool = document.InsertFinalNewLine;
var triBool = document.InsertFinalNewLine;
document.InsertFinalNewLine = triBool;
document.InsertFinalNewLine = triBool;
</source>
</syntaxhighlight>


;値
;値
249行目: 249行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var lineEnding = document.LineEnding;
var lineEnding = document.LineEnding;
document.LineEnding = lineEnding;
document.LineEnding = lineEnding;
</source>
</syntaxhighlight>


;値
;値
267行目: 267行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.Mode;
var s = document.Mode;
document.Mode = s;
document.Mode = s;
</source>
</syntaxhighlight>


==Name プロパティ==
==Name プロパティ==
276行目: 276行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.Name;
var s = document.Name;
</source>
</syntaxhighlight>


==Path プロパティ==
==Path プロパティ==
284行目: 284行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.Path;
var s = document.Path;
</source>
</syntaxhighlight>


==ReadOnly プロパティ==
==ReadOnly プロパティ==
292行目: 292行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var b = document.ReadOnly;
var b = document.ReadOnly;
document.ReadOnly = b;
document.ReadOnly = b;
</source>
</syntaxhighlight>


==Saved プロパティ==
==Saved プロパティ==
301行目: 301行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var b = document.Saved;
var b = document.Saved;
document.Saved = b;
document.Saved = b;
</source>
</syntaxhighlight>


==Selection プロパティ==
==Selection プロパティ==
310行目: 310行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var sel = document.Selection;
var sel = document.Selection;
</source>
</syntaxhighlight>


==Tag プロパティ==
==Tag プロパティ==
318行目: 318行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var dic = document.Tag;
var dic = document.Tag;
</source>
</syntaxhighlight>


;例
;例
<source lang="javascript">
<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"));
</source>
</syntaxhighlight>


==Text プロパティ==
==Text プロパティ==
335行目: 335行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var s = document.Text;
var s = document.Text;
document.Text = s;
document.Text = s;
</source>
</syntaxhighlight>


==TextLength プロパティ==
==TextLength プロパティ==
344行目: 344行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var i = document.TextLength;
var i = document.TextLength;
</source>
</syntaxhighlight>


==TrimTrailingWhiteSpace プロパティ==
==TrimTrailingWhiteSpace プロパティ==
352行目: 352行目:


;構文
;構文
<source lang="javascript">
<syntaxhighlight lang="javascript">
var b = document.TrimTrailingWhiteSpace;
var b = document.TrimTrailingWhiteSpace;
document.TrimTrailingWhiteSpace= b;
document.TrimTrailingWhiteSpace= b;
</source>
</syntaxhighlight>
スポンサーリンク