…XamRichTextEditor("Identifier").SetUpdateMode igOverwrite
This topic provides information about the xamRichTextEditor™ control’s testable user replay-only methods.
This topic contains the following sections:
Sets the update mode for the xamRichTextEditor .
The following table describes the method’s parameter followed by code example.
To change the current update mode from Insert to Overwrite.
…XamRichTextEditor("Identifier").SetUpdateMode igOverwrite
The following is the list of possible exceptions to the method and the likely reason causing them.
The option supplied is not one of the valid options, valid options are [igInsert|igOverwrite]
The operation cannot be performed because the xamRichTextEditor does not have a document loaded
Editing is not allowed
Finds the next instance of the supplied text, starting from the current caret location and moving the caret to the start of the next occurrence of that text moving towards the end of the document.
The following table describes the method’s parameter followed by code example.
To find the next instance of “ word ” from the current caret position.
…XamRichTextEditor("Identifier").FindNextInstanceOfText “word”
To find the sixth instance of “ WoRd ” from the current caret position, case insensitively.
…XamRichTextEditor("Identifier").FindNextInstanceOfText “WoRd”, 5, false
To find the next instance of “ w?rd ” from the current caret position. The following example will pick up word, “ wOrd ”, “ ward ”, etc. The wildcard ( ? ) is identical to the Visual Basic Like operator.
…XamRichTextEditor("Identifier").FindNextInstanceOfText “WoRd”, 0, false, true
There was an error finding the text: [ sTextToFind ]
Finds and selects all instances of the supplied text moving towards the end of the document. If nothing is found, no text is selected.
The following table describes the method’s parameter followed by code example.
To find and select all instances of “ word ” from the current caret position.
…XamRichTextEditor("Identifier").SelectAlltInstanceOfText “Word”
To find and select all instances of “ WoRd ” case insensitively.
…XamRichTextEditor("Identifier").SelectAllInstancesOfText “WoRd”, false
To find all instances of “ w?rd ”. This will pick up “ word ”, “ wOrd ”, “ ward ”, etc. The wildcard ( ? ) is identical to the Visual Basic Like operator.
…XamRichTextEditor("Identifier").SelectAllInstancesOfText “w?rd”, false, true
There was an error finding the text: [ sTextToFind ]
Replaces the next instance of the supplied text, starting from the current caret location and moving the caret to the next start of that text moving towards the end of the document.
The following table describes the method’s parameter followed by code example.
To find the next instance of “ word ” from the current caret position and replace it with “ NewWord ”.
…XamRichTextEditor("Identifier").ReplaceNextInstanceOfText “word”, “NewWord”
To find the sixth instance of “ WoRd ” from the current caret position, case insensitively and replace it with “ NewWord ”.
…XamRichTextEditor("Identifier").ReplaceNextInstanceOfText “WoRd”, “NewWord”, 5, false
To find the next instance of “ w?rd ” from the current caret position. This will pick up “ word ”, “ wOrd ”, “ ward ”, etc. The wildcard ( ? ) is identical to the Visual Basic Like
operator.
…XamRichTextEditor("Identifier").ReplaceNextInstanceOfText “w?rd”, “”, 0, false, true
The following is the list of possible exceptions to the method and the likely reason causing them.
The following item [sTextToFind] was not found
There was an error in finding the text: [sTextToFind]
Finds and replaces all instances of the supplied text.
The following table describes the method’s parameter followed by code examples.
To find and remove all instances of “ word ”.
…XamRichTextEditor("Identifier").ReplaceAllInstancesOfText “word”
To find and replace all instances of “ word ” with “ NewWord ”.
…XamRichTextEditor("Identifier").ReplaceAllInstancesOfText “word”, “NewWord”
To find and select all instances of “ WoRd ” case insensitively and replace it with “ NewWord ”.
…XamRichTextEditor("Identifier").ReplaceAllInstancesOfText “WoRd”, “NewWord”, false
To find all instances of “ w?rd ”. This will pick up “ word ”, “ wOrd ”, “ ward ”, etc. The wildcard ( ? ) is identical to the Visual Basic Like
operator. It replaces all found instances of the text with “ NewWord ”.
…XamRichTextEditor("Identifier").ReplaceAllInstancesOfText “w?rd”, “NewWord”, false, true
The following is the list of possible exceptions to the method and the likely reason causing them.
The following item [sTextToFind] was not found
There was an error in finding the text: [sTextToFind]
The following topics provide additional information related to this topic.