EmEditor ホーム - EmEditor ヘルプ - EmEditor マクロ リファレンス - Selectionオブジェクト

Text プロパティ

選択されたテキストを取得、またはテキストを挿入します。

[JavaScript]

str = document.selection.Text;

document.selection.Text = str;

[VBScript]

str = document.selection.Text

document.selection.Text = str

[JavaScript]

str = document.selection.Text;
alert( "選択されていたテキストは " + str );
document.selection.Text = "こんにちは";
 

[VBScript]

str = document.selection.Text
alert "選択されていたテキストは " & str
document.selection.Text = "こんにちは"
 

バージョン

EmEditor Professional Version 4.00 以上で利用できます。

このページのフィードバックを送信

Copyright © 2003-2007 by Emurasoft, Inc.