Back to Devexpress

Header and Footer

aspnetcore-402472-rich-edit-examples-header-and-footer.md

latest849 B
Original Source

Header and Footer

  • Sep 09, 2024

Create a header and populate it with a text

javascript
var section = richEdit.document.sections.getByIndex(0);
var subDocument = section.getHeader(DevExpress.RichEdit.HeaderFooterType.Primary, true);
subDocument.insertText(0, 'text');
javascript
richEdit.beginUpdate();
richEdit.history.beginTransaction(); 
richEdit.executeCommand(DevExpress.RichEdit.InsertTabCommandId.InsertFooter);  
var section = richEdit.document.sections.getByIndex(0);
var subDocumentFooter = section.getFooter(DevExpress.RichEdit.HeaderFooterType.Primary, true)
var table = subDocumentFooter.tables.create(0, 2, 3);
richEdit.history.endTransaction();
richEdit.endUpdate();