JAVA/CORBA クラス


findandReplace メソッド

リッチテキスト範囲内の次の文字列を置換し、現在の位置を最初の文字列の先頭に移動します。

定義が行われるクラス
RichTextRange

構文
public int findandReplace(String target, String replacement)
throws NotesException

public int findandReplace(String target, String replacement, long options)
throws NotesException

パラメータ
String target


String replacement
long options 戻り値
int
使用法
ナビゲーションのために、このメソッドではタイプ RTELEM_TYPE_TEXTRUN の要素が検索されます。現在の位置は、要素の最初の文字ではなく、要素内の検索文字列の最初の文字になります。

findAndReplace 操作を行った後の範囲は、reset です。

クロスリファレンス
LotusScript NotesRichTextRange クラスの FindAndReplace メソッド


関連項目