A word processor that opens and saves .docx (and the older .doc), Rich Text Format (.rtf) and OpenDocument (.odt) files. Formatting, headings, lists, tables, pictures, links, page setup, find and replace, printing and export to HTML, Markdown and text. The file code is part of RayCraft.Blazor.Office and has no third-party parts. _No live image: this control is described by text and the API table only._
Parameters
Files are read and written by the library itself, with no Office installation and no extra packages.
Floating pictures and text boxes (wrap, position, fill, border)
Yes
Yes
Page size and margins
Yes
Yes
Headers and footers (first page, odd and even pages, page number, date and title fields)
Yes
Yes
Page breaks
Yes
Yes
Tracked insertions and deletions
Yes
Final text
Equations
Yes (unchanged)
Text
Columns and sections
Yes
Page break
API
Parameter
Type
Description
AllowFileTransfer
bool
Shows the commands that open and save files (default true).
Class
string
Extra CSS classes added to the root element.
Document
TextDocument
The document shown at start. Read the edited one with GetDocumentAsync.
FileName
string
Name given to saved files, without extension (default document).
Fonts
IReadOnlyList<string>
The fonts offered in the font list.
Height
string
Height of the control as a CSS length (default 40rem).
IgnoredWords
IReadOnlyCollection<string>
Words that are never reported as misspelled.
Label
string
Accessible name of the page. Defaults to a localized Document.
MaxImportSize
Int64
Largest file that can be opened, in bytes (default 25,000,000).
PdfFonts
PdfFontSet
Fonts for the PDF export, created with PdfFontSet.FromTrueType. Without it the File menu has no PDF command.
ProofAsYouType
bool
Underlines problems while typing; the user can switch it in the Review menu (default true).
Proofing
bool
Offers spelling, grammar and logic checking for English and Bulgarian: Review menu, toolbar button and F7 (default true).
ReadOnly
bool
Shows the document without allowing changes.
ShowMenuBar
bool
Shows the menu bar (default true).
ShowStatusBar
bool
Shows words, characters, page and zoom (default true).
ShowToolbar
bool
Shows the formatting toolbar (default true).
Style
string
Inline style added to the root element.
Zoom
int
Starting zoom in percent (default 100).
Events
API
Event
Type
Description
OnChanged
EventCallback
Raised after a short pause when the text changed.
OnNew
EventCallback
OnSave
EventCallback<OfficeFileSave>
OnSaveAs
EventCallback<OfficeFileSave>
Package
DocumentEditor is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.