ASPxClientRichEditAutoCorrectEventArgs.interval Property
Gets the input string’s interval.
Declaration
interval: Interval
Property Value
Type | Description |
---|---|
Interval | An Interval value specifying the input string’s interval within an active sub-document. |
Remarks
You can use the interval property to select the input string and replace it by adding new content as demonstrated in the following code snippet:
<script type="text/javascript">
function OnAutoCorrect(s, e) {
DemoRichEdit.selection.intervals = [e.interval];
DemoRichEdit.commands.changeFontBold.execute(true);
DemoRichEdit.commands.insertText.execute("Bold Text");
DemoRichEdit.commands.changeFontBold.execute(false);
e.handled = true;
}
}
</script>
<dx:ASPxRichEdit ID="DemoRichEdit" ClientInstanceName="DemoRichEdit" runat="server" >
<ClientSideEvents AutoCorrect="OnAutoCorrect" />
</dx:ASPxRichEdit>
See Also