aspnetcore-js-devexpress-dot-richedit-f74f73e9.md
Implements mandatory members that allow you to bind the RichEdit control to the Nuance SpeechKit.
export interface NusaCustomControlType
Specifies the escape sequence for the line break in the Rich Text Editor.
newlineFormat: string
| Type | Description |
|---|---|
| string |
The string value that is equal to the LineBreak value.
|
Specifies the escape sequence for the paragraph break in the Rich Text Editor.
paragraphFormat: string
| Type | Description |
|---|---|
| string |
The string value that is equal to the ParagraphBreak value.
|
Returns the current selection range in the RichEdit control.
getSelection(element: HTMLElement): {
start: number;
length: number;
}
| Name | Type | Description |
|---|---|---|
| element | HTMLElement |
An HTML element that represents the RichEdit control.
|
| Type | Description |
|---|---|
| {length: number, start: number} |
An object that contains the length and start position of the selection in the RichEdit control.
|
Returns the selected text in the RichEdit control.
getSelectionText(
element: HTMLElement
): string
| Name | Type | Description |
|---|---|---|
| element | HTMLElement |
An HTML element that represents the RichEdit control.
|
| Type | Description |
|---|---|
| string |
The selected text.
|
Returns the RichEdit control document’s textual representation.
getText(
element: HTMLElement
): string
| Name | Type | Description |
|---|---|---|
| element | HTMLElement |
An HTML element that represents the RichEdit control.
|
| Type | Description |
|---|---|
| string |
The document text.
|
Replaces the text in the RichEdit.
replaceText(
element: HTMLElement,
text: string,
fromPos: number,
length: number
): void
| Name | Type | Description |
|---|---|---|
| element | HTMLElement |
An HTML element that represents the RichEdit control.
| | text | string |
The replacement text.
| | fromPos | number |
The start position of text to be replaced.
| | length | number |
The length of text to be replaced.
|
Sets the selection in the the RichEdit control.
setSelection(
element: HTMLElement,
start: number,
length: number
): void
| Name | Type | Description |
|---|---|---|
| element | HTMLElement |
An HTML element that represents the RichEdit control.
| | start | number |
The start position of the selection.
| | length | number |
The selection length.
|