「マクロリファレンス:Editor インターフェイス」の版間の差分
ナビゲーションに移動
検索に移動
編集の要約なし |
|||
| (同じ利用者による、間の2版が非表示) | |||
| 1行目: | 1行目: | ||
== メソッド == | == メソッド == | ||
=== FindInFiles メソッド === | === FindInFiles メソッド === | ||
| 31行目: | 30行目: | ||
| meFindFileNamesOnly || ファイル名のみ表示します。 | | meFindFileNamesOnly || ファイル名のみ表示します。 | ||
|} | |} | ||
=== NewFile メソッド === | === NewFile メソッド === | ||
| 40行目: | 38行目: | ||
function NewFile() | function NewFile() | ||
</source> | </source> | ||
=== OpenFile メソッド === | === OpenFile メソッド === | ||
| 59行目: | 56行目: | ||
Encoding | Encoding | ||
*省略可能です。開くファイルのエンコード。 | *省略可能です。開くファイルのエンコード。 | ||
{| class="wikitable" | |||
| meEncodingNone || 自動選択 | |||
|- | |||
| meEncodingUTF16LE || Unicode (UTF-16) | |||
|- | |||
| meEncodingUTF16BE || Unicode (UTF-16, Big-Endian) | |||
|- | |||
| meEncodingUTF8WithSignature || Unicode (UTF-8, BOM有) | |||
|- | |||
| meEncodingUTF8WithoutSignature || Unicode (UTF-8, BOM無) | |||
|- | |||
| meEncodingUTF7 || Unicode (UTF-7) | |||
|- | |||
| meEncodingArabic || アラビア言語 (Windows) | |||
|- | |||
| meEncodingBaltic || バルト言語 (Windows) | |||
|- | |||
| meEncodingCentralEuropean || 中央ヨーロッパ言語 (Windows) | |||
|- | |||
| meEncodingChineseSimplified || 簡体字中国語 (GB2312) | |||
|- | |||
| meEncodingChineseTraditional || 繁体字中国語 (Big5) | |||
|- | |||
| meEncodingCyrillic || キリル言語 (Windows) | |||
|- | |||
| meEncodingGreek || ギリシャ語 (Windows) | |||
|- | |||
| meEncodingHebrew || ヘブライ語 (Windows) | |||
|- | |||
| meEncodingEUC || 日本語 (EUC) | |||
|- | |||
| meEncodingJIS || 日本語 (JIS) | |||
|- | |||
| meEncodingShiftJIS || 日本語 (シフト JIS) | |||
|- | |||
| meEncodingKorean || 韓国語 | |||
|- | |||
| meEncodingThai || タイ語 (Windows) | |||
|- | |||
| meEncodingTurkish || トルコ語 (Windows) | |||
|- | |||
| meEncodingVietnamese || ベトナム語 (Windows) | |||
|- | |||
| meEncodingWesternEuropean || 西ヨーロッパ言語 (Windows) | |||
|} | |||
Flags | Flags | ||
{| class="wikitable" | {| class="wikitable" | ||
| meOpenAllowNewWindow || | | meOpenAllowNewWindow || 現在の文書が無題でないか、変更されている場合に新しいタブまたはウィンドウで開きます。 | ||
|} | |} | ||
=== ReplaceInFiles メソッド === | === ReplaceInFiles メソッド === | ||
| 97行目: | 138行目: | ||
| meReplaceBackup || バックアップを保存します。 | | meReplaceBackup || バックアップを保存します。 | ||
|} | |} | ||
=== SaveAll メソッド === | === SaveAll メソッド === | ||
| 106行目: | 146行目: | ||
function SaveAll() | function SaveAll() | ||
</source> | </source> | ||
=== SaveCloseAll メソッド === | === SaveCloseAll メソッド === | ||
| 115行目: | 154行目: | ||
function SaveCloseAll() | function SaveCloseAll() | ||
</source> | </source> | ||
== プロパティ == | == プロパティ == | ||
=== ActiveDocument プロパティ === | === ActiveDocument プロパティ === | ||
| 127行目: | 164行目: | ||
function get ActiveDocument() : Document | function get ActiveDocument() : Document | ||
</source> | </source> | ||
=== Documents プロパティ === | === Documents プロパティ === | ||
| 136行目: | 172行目: | ||
function get Documents() : Documents | function get Documents() : Documents | ||
</source> | </source> | ||
=== EnableTab プロパティ === | === EnableTab プロパティ === | ||
| 145行目: | 180行目: | ||
function get EnableTab() : boolean | function get EnableTab() : boolean | ||
</source> | </source> | ||
=== FullName プロパティ === | === FullName プロパティ === | ||
| 154行目: | 188行目: | ||
function get FullName() : String | function get FullName() : String | ||
</source> | </source> | ||
=== Version プロパティ === | === Version プロパティ === | ||
2024年3月30日 (土) 15:19時点における最新版
メソッド
FindInFiles メソッド
複数のファイルから指定の文字列を検索します。
- 構文
function FindInFiles(
FindPattern : String,
Path : String
Flags : int
)
- パラメータ
FindPattern
- 必ず指定します。検索する文字列。
Path
- 必ず指定します。検索するディレクトリのパス。
Flags
| meFindReplaceCase | 検索する単語の大文字と小文字を区別します。 |
| meFindReplaceOnlyWord | 完全に一致する単語を検索します。 |
| meFindReplaceRegExp | 正規表現で検索します。 |
| meFindRecursive | サブディレクトリも検索します。 |
| meFindFileNamesOnly | ファイル名のみ表示します。 |
NewFile メソッド
文書を新規作成します。
- 構文
function NewFile()
OpenFile メソッド
文書を開きます。
- 構文
function OpenFile(
File : String,
Encoding : int,
Flags : int
)
- パラメータ
File
- 必ず指定します。開くファイル名。
Encoding
- 省略可能です。開くファイルのエンコード。
| meEncodingNone | 自動選択 |
| meEncodingUTF16LE | Unicode (UTF-16) |
| meEncodingUTF16BE | Unicode (UTF-16, Big-Endian) |
| meEncodingUTF8WithSignature | Unicode (UTF-8, BOM有) |
| meEncodingUTF8WithoutSignature | Unicode (UTF-8, BOM無) |
| meEncodingUTF7 | Unicode (UTF-7) |
| meEncodingArabic | アラビア言語 (Windows) |
| meEncodingBaltic | バルト言語 (Windows) |
| meEncodingCentralEuropean | 中央ヨーロッパ言語 (Windows) |
| meEncodingChineseSimplified | 簡体字中国語 (GB2312) |
| meEncodingChineseTraditional | 繁体字中国語 (Big5) |
| meEncodingCyrillic | キリル言語 (Windows) |
| meEncodingGreek | ギリシャ語 (Windows) |
| meEncodingHebrew | ヘブライ語 (Windows) |
| meEncodingEUC | 日本語 (EUC) |
| meEncodingJIS | 日本語 (JIS) |
| meEncodingShiftJIS | 日本語 (シフト JIS) |
| meEncodingKorean | 韓国語 |
| meEncodingThai | タイ語 (Windows) |
| meEncodingTurkish | トルコ語 (Windows) |
| meEncodingVietnamese | ベトナム語 (Windows) |
| meEncodingWesternEuropean | 西ヨーロッパ言語 (Windows) |
Flags
| meOpenAllowNewWindow | 現在の文書が無題でないか、変更されている場合に新しいタブまたはウィンドウで開きます。 |
ReplaceInFiles メソッド
複数のファイルから指定の文字列を置換します。
- 構文
function ReplaceInFiles(
FindPattern : String,
ReplacePattern : String,
Path : String,
Flags : int
)
- パラメータ
FindPattern
- 必ず指定します。検索する文字列。
ReplacePattern
- 必ず指定します。置換後の文字列。
Path
- 必ず指定します。検索するディレクトリのパス。
Flags
| meFindReplaceCase | 検索する単語の大文字と小文字を区別します。 |
| meFindReplaceOnlyWord | 完全に一致する単語を検索します。 |
| meFindReplaceRegExp | 正規表現で検索します。 |
| meFindRecursive | サブディレクトリも検索します。 |
| meReplaceBackup | バックアップを保存します。 |
SaveAll メソッド
文書をすべて保存します。
- 構文
function SaveAll()
SaveCloseAll メソッド
文書をすべて保存して閉じます。
- 構文
function SaveCloseAll()
プロパティ
ActiveDocument プロパティ
現在開いているDocument オブジェクトを取得します。
- 構文
function get ActiveDocument() : Document
Documents プロパティ
現在開いている文書を示す Documents コレクションを取得します。
- 構文
function get Documents() : Documents
EnableTab プロパティ
タブが有効かどうかを取得します。
- 構文
function get EnableTab() : boolean
FullName プロパティ
Mery の実行ファイルのファイルパスを取得します。
- 構文
function get FullName() : String
Version プロパティ
Meryのバージョンを取得します。
- 構文
function get Version() : String
スポンサーリンク