「マクロリファレンス:3:Editor オブジェクト」の版間の差分
細 「マクロリファレンス:3:Editor オブジェクト」を保護しました ([編集=管理者のみ許可] (無期限) [移動=管理者のみ許可] (無期限)) [カスケード] |
編集の要約なし |
||
| 4行目: | 4行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.CloseAll(); | editor.CloseAll(); | ||
</ | </syntaxhighlight> | ||
==ExecuteCommandByID メソッド== | ==ExecuteCommandByID メソッド== | ||
| 12行目: | 12行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.ExecuteCommandByID(id); | editor.ExecuteCommandByID(id); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 24行目: | 24行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.FindInFiles(strFind, strPath, flags); | editor.FindInFiles(strFind, strPath, flags); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 50行目: | 50行目: | ||
;例 | ;例 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.FindInFiles("検索する文字列", "C:\\Mery\\*.txt;*.js", meFindReplaceCase | meFindRecursive); | editor.FindInFiles("検索する文字列", "C:\\Mery\\*.txt;*.js", meFindReplaceCase | meFindRecursive); | ||
</ | </syntaxhighlight> | ||
==NewFile メソッド== | ==NewFile メソッド== | ||
| 58行目: | 58行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.NewFile(); | editor.NewFile(); | ||
</ | </syntaxhighlight> | ||
==OpenFile メソッド== | ==OpenFile メソッド== | ||
| 66行目: | 66行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.OpenFile(fileName [, encoding, flags]); | editor.OpenFile(fileName [, encoding, flags]); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 140行目: | 140行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.QueryStatusByID(id); | editor.QueryStatusByID(id); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 152行目: | 152行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.ReplaceInFiles(strFind, strReplace, strPath, flags); | editor.ReplaceInFiles(strFind, strReplace, strPath, flags); | ||
</ | </syntaxhighlight> | ||
;引数 | ;引数 | ||
| 180行目: | 180行目: | ||
;例 | ;例 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.ReplaceInFiles("検索する文字列", "置換後の文字列", "C:\\Mery\\*.txt;*.js", meFindReplaceCase | meFindRecursive | meReplaceBackup); | editor.ReplaceInFiles("検索する文字列", "置換後の文字列", "C:\\Mery\\*.txt;*.js", meFindReplaceCase | meFindRecursive | meReplaceBackup); | ||
</ | </syntaxhighlight> | ||
==SaveAll メソッド== | ==SaveAll メソッド== | ||
| 188行目: | 188行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.SaveAll(); | editor.SaveAll(); | ||
</ | </syntaxhighlight> | ||
==SaveCloseAll メソッド== | ==SaveCloseAll メソッド== | ||
| 196行目: | 196行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
editor.SaveCloseAll(); | editor.SaveCloseAll(); | ||
</ | </syntaxhighlight> | ||
=プロパティ= | =プロパティ= | ||
| 205行目: | 205行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var doc = editor.ActiveDocument; | var doc = editor.ActiveDocument; | ||
</ | </syntaxhighlight> | ||
==Documents プロパティ== | ==Documents プロパティ== | ||
| 213行目: | 213行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var docs = editor.Documents; | var docs = editor.Documents; | ||
</ | </syntaxhighlight> | ||
==EnableTab プロパティ== | ==EnableTab プロパティ== | ||
| 221行目: | 221行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var b = editor.EnableTab; | var b = editor.EnableTab; | ||
</ | </syntaxhighlight> | ||
==FullName プロパティ== | ==FullName プロパティ== | ||
| 229行目: | 229行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = editor.FullName; | var s = editor.FullName; | ||
</ | </syntaxhighlight> | ||
==Tag プロパティ== | ==Tag プロパティ== | ||
| 237行目: | 237行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var dic = editor.Tag; | var dic = editor.Tag; | ||
</ | </syntaxhighlight> | ||
;例 | ;例 | ||
< | <syntaxhighlight lang="javascript"> | ||
var dic = editor.Tag; | var dic = editor.Tag; | ||
if (!dic.exists("key1")) { | if (!dic.exists("key1")) { | ||
| 248行目: | 248行目: | ||
} | } | ||
alert(dic("key1")); | alert(dic("key1")); | ||
</ | </syntaxhighlight> | ||
==Version プロパティ== | ==Version プロパティ== | ||
| 254行目: | 254行目: | ||
;構文 | ;構文 | ||
< | <syntaxhighlight lang="javascript"> | ||
var s = editor.Version; | var s = editor.Version; | ||
</ | </syntaxhighlight> | ||
スポンサーリンク