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 メソッド

例
関連項目