aspnetcore-js-devexpress-dot-richedit-3475df9d.md
Defines a document in the Rich Text Editor.
export class RichEditDocument extends RichEditDocumentBase
checkProtectionPassword(password)
getCharacterProperties(interval)
getParagraphProperties(interval)
insertPicture(position, base64)
insertSectionBreak(position, type)
setCharacterProperties(interval, characterProperties)
setParagraphProperties(interval, paragraphProperties)
RichEditDocumentBase RichEditDocument
Provide access to the document’s collection of bookmarks.
get bookmarks(): BookmarkCollectionBase
| Type | Description |
|---|---|
| BookmarkCollectionBase |
A collection of bookmarks.
|
var bookmark = richEdit.document.bookmarks.find('bookmarkName')[0];
if (bookmark)
bookmark.goTo();
See Also
Provides access to the document’s images.
get images(): Images
| Type | Description |
|---|---|
| Images |
An object that allows you to manage document images.
|
Specifies whether the document has unsaved changes.
get modified(): boolean
set modified(value: boolean)
| Type | Description |
|---|---|
| boolean |
true if the document has unsaved changes; otherwise, false.
|
It is not possible to set the modified property to true to mark the document as modified. You can use the hasUnsavedChanges property to specify the Save button availability.
Provide access to the document’s collection of sub-documents.
get subDocuments(): SubDocumentCollectionBase
| Type | Description |
|---|---|
| SubDocumentCollectionBase |
A collection of sub-documents.
|
See Also
Sets the document’s default character properties.
setDefaultCharacterProperties(
characterProperties: ICharacterProperties
): void
| Name | Type | Description |
|---|---|---|
| characterProperties | ICharacterProperties |
A CharacterProperties object that implements the ICharacterProperties interface and contains character properties.
|
const charProps = richEdit.document.getDefaultCharacterProperties();
charProps.fontName = "Segoe UI";
richEdit.document.setDefaultCharacterProperties(charProps);