Provides a comprehensive ribbon user interface containing most of the rich text editing features available in RadRichTextEditor, organized into logical tabs and groups for document formatting, layout, references, and advanced editing capabilities.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
[TelerikToolboxCategory("RichTextEditor")]
public class RichTextEditorRibbonBar : RadRibbonBar, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadRibbonBarRichTextEditorRibbonBar...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RichTextEditorRibbonBar class, creating a comprehensive ribbon interface for rich text editing operations.
public RichTextEditorRibbonBar()
Fields
The active document editor whose formatting and command events are reflected by the ribbon.
protected RadRichTextBox activeEditorCache
Backstage command item wired to create a new document, clear the remembered file name, and close the view.
protected BackstageButtonItem backstageButtonNew
Backstage command item wired to open a document and remember its path after a successful open.
protected BackstageButtonItem backstageButtonOpen
Backstage command item wired to close the view and run the editor's print command.
protected BackstageButtonItem backstageButtonPrint
Backstage command item wired to close the view and run the editor's print-preview command.
protected BackstageButtonItem backstageButtonPrintPreview
Backstage command item for the default save workflow, which uses the remembered file path when available.
protected BackstageButtonItem backstageButtonSave
Backstage tab that selects the page containing the available Save As formats.
protected BackstageTabItem backstageTabItemSaveAs
Hosts the file-management surface opened by the ribbon application button, including the Save As page.
protected RadRibbonBarBackstageView backstageView
Page in the backstage view that contains the format-specific save buttons.
protected BackstageViewPage backstageViewPageSaveAs
Groups check-box, combo-box, drop-down-list, and date-picker content-control buttons.
protected RadRibbonBarButtonGroup bottomContentControlsButtonGroup
Opens a color dialog for choosing the active editor's text-highlight color.
protected RadButtonElement buttonBackColor
Inserts a bibliography field into the active editor.
protected RadButtonElement buttonBibliography
Centers cell text horizontally and places cell content at the bottom.
protected RadToggleButtonElement buttonBottomCenterAlignment
Aligns cell text to the left and places cell content at the bottom.
protected RadToggleButtonElement buttonBottomLeftAlignment
Aligns cell text to the right and places cell content at the bottom.
protected RadToggleButtonElement buttonBottomRightAlignment
Opens the style-management dialog for the active editor.
protected RadButtonElement buttonChangeStyles
Inserts a check-box content control at the current selection.
protected RadButtonElement buttonCheckBoxContentControl
Button whose click handler runs the clear-all-formatting command on the active editor, including list-style removal.
protected RadButtonElement buttonClearFormatting
Exits header/footer editing mode and returns the editor to document-body editing.
protected RadButtonElement buttonCloseHeaderAndFooter
Opens the code-formatting dialog for the current caret or selection.
protected RadButtonElement buttonCode
Inserts a combo-box content control at the current selection.
protected RadButtonElement buttonComboBoxContentControl
Opens properties for the content control at the caret; enabled only when the caret is within a content control.
protected RadButtonElement buttonContentControlProperties
Home-tab Clipboard button that invokes the active editor's copy command.
protected RadButtonElement buttonCopy
Opens the active editor's cross-reference window.
protected RadButtonElement buttonCrossReference
Home-tab Clipboard button that invokes the active editor's cut command.
protected RadButtonElement buttonCut
Opens the active editor's date/time insertion dialog.
protected RadButtonElement buttonDateAndTime
Inserts a date-picker content control at the current selection.
protected RadButtonElement buttonDatePickerContentControl
Decreases the selected text's font size through the active editor's command collection.
protected RadButtonElement buttonDecreaseFontSize
Decreases the active paragraph's left indent.
protected RadButtonElement buttonDecreaseIndent
Deletes the table containing the caret when no document selection is active.
protected RadButtonElement buttonDelete
Deletes comments in reverse document order, stopping if comment permissions prevent a deletion.
protected RadButtonElement buttonDeleteAllComments
Deletes the column containing the caret; deleting the only column also removes the table.
protected RadButtonElement buttonDeleteColumn
Deletes the comment identified by the caret or selection.
protected RadButtonElement buttonDeleteComment
Deletes the row containing the caret; deleting the only row also removes the table.
protected RadButtonElement buttonDeleteRow
Inserts a drop-down-list content control at the current selection.
protected RadButtonElement buttonDropDownListContentControl
Opens the dialog for reviewing and changing editing permissions in the active document context.
protected RadButtonElement buttonEditingRestrictions
Toggle that enables or disables spell checking in the associated editor.
protected RadToggleButtonElement buttonEnableSpellCheck
Opens the Find and Replace dialog for the active editor.
protected RadButtonElement buttonFindAndReplace
Opens the context menu at the next spelling error; the ribbon's spell-check toggle enables it when switched on.
protected RadButtonElement buttonFindNextError
Switches the active editor to paged layout and focuses the footer.
protected RadButtonElement buttonFooter
Opens a color dialog for choosing the active editor's font color.
protected RadButtonElement buttonForeColor
Format Painter toggle whose single- and double-click callbacks select single- or multiple-paste formatting.
protected FormatPainterToggleButtonElement buttonFormatPainter
Groups the three alignment choices that place cell content at the bottom.
protected RadRibbonBarButtonGroup buttonGroupBottomAlignments
Groups the footer's bottom-margin label and value control.
protected RadRibbonBarButtonGroup buttonGroupFooterPosition
Groups the header's top-margin label and value control.
protected RadRibbonBarButtonGroup buttonGroupHeaderPosition
Groups the three alignment choices that vertically center cell content.
protected RadRibbonBarButtonGroup buttonGroupMiddleAlignments
Groups the first-column, last-column, and column-banding options.
protected RadRibbonBarButtonGroup buttonGroupTableColumnsStyleOptions
Groups the header-row, total-row, and row-banding options.
protected RadRibbonBarButtonGroup buttonGroupTableRowsStyleOptions
Groups the three alignment choices that place cell content at the top.
protected RadRibbonBarButtonGroup buttonGroupTopAlignments
Switches the active editor to paged layout and focuses the header.
protected RadButtonElement buttonHeader
Increases the selected text's font size through the active editor's command collection.
protected RadButtonElement buttonIncreaseFontSize
Increases the active paragraph's left indent.
protected RadButtonElement buttonIncreaseIndent
Inserts a row above the current table row.
protected RadButtonElement buttonInsertAbove
Inserts a row below the current table row.
protected RadButtonElement buttonInsertBelow
Opens the caption-insertion dialog for the active editor.
protected RadButtonElement buttonInsertCaption
Adds a column to the right of the current table's last column when no selection is active.
protected RadButtonElement buttonInsertColumn
Opens the active editor's cross-reference window.
protected RadButtonElement buttonInsertCrossReference
Opens the active editor's date/time insertion dialog.
protected RadButtonElement buttonInsertDateAndTime
Inserts an endnote at the active editor's caret and selects the new note for editing.
protected RadButtonElement buttonInsertEndnote
Inserts a footnote at the active editor's caret and selects the new note for editing.
protected RadButtonElement buttonInsertFootnote
Opens the active editor's hyperlink-insertion dialog.
protected RadButtonElement buttonInsertHyperlink
Opens an image picker and inserts the selected image when its extension is supported by a built-in or custom decoder.
protected RadButtonElement buttonInsertImage
Inserts a column to the left of the current table column.
protected RadButtonElement buttonInsertLeft
Adds a comment to the current selection, or to the current word when there is no selection.
protected RadButtonElement buttonInsertNewComment
Inserts a page-number field at the caret and displays its result.
protected RadButtonElement buttonInsertPageNumber
Inserts a column to the right of the current table column.
protected RadButtonElement buttonInsertRight
Adds a row at the bottom of the current table when no selection is active.
protected RadButtonElement buttonInsertRow
Opens the symbol picker and inserts the selected character using the current font and span formatting.
protected RadButtonElement buttonInsertSymbol
Opens an export dialog and, when accepted, generates and saves the merged document for all data source records.
protected RadButtonElement buttonMailMerge
Opens the active editor's bookmark-management dialog.
protected RadButtonElement buttonManageBookmarks
Opens the dialog for managing bibliographic sources in the document.
protected RadButtonElement buttonManageSources
Merges selected cells when they form a complete rectangular range within one table.
protected RadButtonElement buttonMergeCells
Centers cell text horizontally and vertically centers cell content.
protected RadToggleButtonElement buttonMiddleCenterAlignment
Aligns cell text to the left and vertically centers cell content.
protected RadToggleButtonElement buttonMiddleLeftAlignment
Aligns cell text to the right and vertically centers cell content.
protected RadToggleButtonElement buttonMiddleRightAlignment
Opens the list-style library, including multilevel list presets and the define-new-style command.
protected RadDropDownButtonElement buttonMultilevelList
Selects the first mail merge data source record and refreshes the document fields.
protected RadButtonElement buttonNavigateFirst
Selects the last mail merge data source record and refreshes the document fields.
protected RadButtonElement buttonNavigateLast
Selects the next mail merge data source record and refreshes the document fields.
protected RadButtonElement buttonNavigateNext
Selects the previous mail merge data source record and refreshes the document fields.
protected RadButtonElement buttonNavigatePrevious
Inserts a comment over the selection, or over the current word when the selection is empty.
protected RadButtonElement buttonNewComment
Navigates to the next revision, prompting before wrapping to the first revision.
protected RadButtonElement buttonNextChange
Navigates to the next comment and prompts before wrapping to the first comment.
protected RadButtonElement buttonNextComment
Inserts a page break and following newline as one undoable operation; inside a table, the command inserts a paragraph instead.
protected RadButtonElement buttonPageBreak
Inserts a page-number field at the active editor's caret.
protected RadButtonElement buttonPageNumber
Opens a color dialog for choosing the active paragraph's background color.
protected RadButtonElement buttonParagraphBackColor
Split button that hosts paste options and the hidden default item used for a standard paste.
protected RadSplitButtonElement buttonPaste
Inserts a picture content control at the current selection.
protected RadButtonElement buttonPictureContentControl
Inserts a plain-text content control at the current selection.
protected RadButtonElement buttonPlainTextContentControl
Updates and displays the results of all document fields for the current mail merge record.
protected RadButtonElement buttonPreviewResults
Navigates to the previous revision, prompting before wrapping to the last revision.
protected RadButtonElement buttonPreviousChange
Navigates to the previous comment and prompts before wrapping to the last comment.
protected RadButtonElement buttonPreviousComment
Switches the document to paged layout.
protected RadButtonElement buttonPrintLayout
Opens the properties dialog for the table containing the caret or selected cells.
protected RadButtonElement buttonProperties
Quick Access Toolbar button that runs the redo command on the associated editor's active document editor.
protected RadButtonElement buttonRedo
Inserts a repeating-section content control at the current selection.
protected RadButtonElement buttonRepeatingSectionContentControl
Inserts a rich-text content control at the current selection.
protected RadButtonElement buttonRichTextContentControl
Quick Access Toolbar button that saves the associated editor using its remembered file name.
protected RadButtonElement buttonSave
Save As button wired to request the html format from the save command.
protected RadButton buttonSaveHTML
Save As button wired to request the pdf format from the save command.
protected RadButton buttonSavePDF
Save As button wired to request the txt format from the save command.
protected RadButton buttonSavePlain
Save As button wired to request the rtf format from the save command.
protected RadButton buttonSaveRich
Save As button wired to request the docx format from the save command.
protected RadButton buttonSaveWord
Displays all document fields as their field codes.
protected RadButtonElement buttonShowAllFieldCodes
Requests display-name mode for all fields; fields without a display-name fragment show their result instead.
protected RadButtonElement buttonShowAllFieldsNames
Opens the spell-checking dialog for the active editor.
protected RadButtonElement buttonSpellCheck
Opens the table-of-contents dialog for the active editor.
protected RadButtonElement buttonTableOfContents
Centers cell text horizontally and places cell content at the top.
protected RadToggleButtonElement buttonTopCenterAlignment
Aligns cell text to the left and cell content to the top.
protected RadToggleButtonElement buttonTopLeftAlignment
Aligns cell text to the right and cell content to the top.
protected RadToggleButtonElement buttonTopRightAlignment
Quick Access Toolbar button that runs the undo command on the associated editor's active document editor.
protected RadButtonElement buttonUndo
Splits the merged cell at the caret or in the selection into its constituent cells.
protected RadButtonElement buttonUnmergeCells
Switches the document to flow layout, which wraps text to the available width and disables paging.
protected RadButtonElement buttonWebLayout
Save As button wired to request the xaml format from the save command.
protected RadButton buttonXAML
Applies alternating column banding from the selected table style to the current table.
protected RadCheckBoxElement checkBoxBandedColumns
Applies alternating row banding from the selected table style to the current table.
protected RadCheckBoxElement checkBoxBandedRows
Toggles separate headers and footers for the current section's first page.
protected RadCheckBoxElement checkBoxDifferentFirstPage
Toggles the document-wide option to use different headers and footers on odd and even pages.
protected RadCheckBoxElement checkBoxDifferentOddAndEvenPages
Applies the selected table style's first-column formatting to the current table.
protected RadCheckBoxElement checkBoxFirstColumn
Applies the selected table style's first-row formatting to the current table.
protected RadCheckBoxElement checkBoxHeaderRow
Applies the selected table style's last-column formatting to the current table.
protected RadCheckBoxElement checkBoxLastColumn
Applies the selected table style's last-row formatting to the current table.
protected RadCheckBoxElement checkBoxTotalRow
Groups the content-control properties command.
protected RadRibbonBarButtonGroup contentControlPropertiesButtonGroup
Groups the two rows of content-control insertion buttons.
protected RadRibbonBarButtonGroup contentControlsButtonGroup
Hidden default item whose click handler invokes the standard paste command.
protected RadMenuItem defaultPasteItem
The current document used to track caret movement and document command execution.
protected RadDocument documentCache
Offers automatic fitting to the window or fixed table-column widths.
protected RadDropDownButtonElement dropDownButtonAutoFit
Opens page, column, line, and section break commands.
protected RadDropDownButtonElement dropDownButtonBreaks
Opens section-column presets and the dialog for custom column settings.
protected RadDropDownButtonElement dropDownButtonColumns
Opens citation-source choices from the document and a command to add a new source.
protected RadDropDownButtonElement dropDownButtonInsertCitation
Lists the current mail merge data source's columns so one can be inserted as a merge field.
protected RadDropDownButtonElement dropDownButtonInsertMergeField
Opens a grid for choosing table dimensions or a dialog for inserting a table.
protected RadDropDownButtonElement dropDownButtonInsertTables
Opens line-numbering modes, paragraph suppression, and line-numbering options.
protected RadDropDownButtonElement dropDownButtonLineNumbers
Opens the page-margin presets for the active section.
protected RadDropDownButtonElement dropDownButtonMargins
Opens the page-orientation options for the active section.
protected RadDropDownButtonElement dropDownButtonOrientation
Provides commands to select the current cell, row, column, or table.
protected RadDropDownButtonElement dropDownButtonSelect
Opens the list of localized paper sizes for the active section.
protected RadDropDownButtonElement dropDownButtonSize
Opens predefined watermark choices and custom/remove watermark commands.
protected RadDropDownButtonElement dropDownButtonWatermark
Selects which bibliographic reference style the editor uses for citations and bibliography output.
protected RadDropDownListElement dropDownListCitationStyle
Shows available font families, applies font previews to the selection, and reflects the selected font when the popup is closed.
protected RadFontPopupEditorElement dropDownListFont
Font-size selector populated with point values and converted to device-independent units when applied.
protected RadDropDownListElement dropDownListFontSize
Flow-layout host for the Save As format buttons on backstageViewPageSaveAs.
protected CustomFlowLayoutPanel flp
Displays style previews in a gallery whose cached items are keyed by style display name.
protected RadGalleryElement galleryStyles
Displays available table styles by category; selecting a style applies it to the current table.
protected RadGalleryElement galleryTableStyles
Hosts the nine horizontal and vertical table-cell content alignment choices.
protected RadRibbonBarGroup groupAlignment
References group for inserting captions and cross-references.
protected RadRibbonBarGroup groupCaptions
Hosts table-column sizing modes.
protected RadRibbonBarGroup groupCellSize
References group for inserting citations, managing sources, choosing a citation style, and inserting a bibliography.
protected RadRibbonBarGroup groupCitationsAndBibliography
Home-tab group containing the paste split button, Cut, Copy, and Format Painter controls.
protected RadRibbonBarGroup groupClipboard
Hosts the command for leaving header/footer editing mode.
protected RadRibbonBarGroup groupClose
Hosts column insertion and deletion commands.
protected RadRibbonBarGroup groupColumns
Hosts comment insertion, deletion, navigation, and visibility controls.
protected RadRibbonBarGroup groupComments
Hosts content-control insertion and properties commands.
protected RadRibbonBarGroup groupContentControls
Hosts the commands for switching between flow and paged document layout.
protected RadRibbonBarGroup groupDocumentViews
Home-tab group for Find and Replace and spell-checking commands.
protected RadRibbonBarGroup groupEditingAndProofing
Hosts the command that creates and exports the merged document.
protected RadRibbonBarGroup groupFinish
Home-tab group for font family and size, text formatting, and font color controls.
protected RadRibbonBarGroup groupFont
References group for inserting and navigating footnotes and endnotes.
protected RadRibbonBarGroup groupFootnotes
Insert-tab group for switching the active editor into header or footer editing mode.
protected RadRibbonBarGroup groupHeaderAndFooter
Insert-tab group containing the picture-insertion command.
protected RadRibbonBarGroup groupIllustrations
Hosts date/time and page-number insertion commands.
protected RadRibbonBarGroup groupInsert
Insert-tab group for hyperlinks, bookmarks, and cross-references.
protected RadRibbonBarGroup groupLinks
Hosts commands for merging selected cells or splitting a merged cell.
protected RadRibbonBarGroup groupMerge
Hosts the option for linking the active header or footer to the previous section.
protected RadRibbonBarGroup groupNavigation
Insert-tab group containing the new-comment command.
protected RadRibbonBarGroup groupNewComments
Hosts first-page and odd/even header/footer options.
protected RadRibbonBarGroup groupOptions
Page Layout group containing the watermark menu.
protected RadRibbonBarGroup groupPageBackground
Insert-tab group containing the page-break command.
protected RadRibbonBarGroup groupPages
Page Layout group for paper size, margins, orientation, columns, breaks, and line numbering.
protected RadRibbonBarGroup groupPageSetup
Home-tab group for list styles, indentation, text direction, formatting marks, paragraph alignment, and background color.
protected RadRibbonBarGroup groupParagraph
Hosts the header-top and footer-bottom position settings.
protected RadRibbonBarGroup groupPosition
Hosts field display-mode controls and navigation through mail merge data source records.
protected RadRibbonBarGroup groupPreviewResults
Hosts the spell-check command on the Review tab.
protected RadRibbonBarGroup groupProofing
Hosts document-protection and editing-permissions commands.
protected RadRibbonBarGroup groupProtect
Hosts row insertion and deletion commands.
protected RadRibbonBarGroup groupRows
Home-tab group containing the Quick Styles gallery and style-management command.
protected RadRibbonBarGroup groupStyles
Insert-tab group containing the symbol-picker command.
protected RadRibbonBarGroup groupSymbols
Hosts table selection, properties, and deletion commands.
protected RadRibbonBarGroup groupTable
Hosts the command for repeating table rows across pages.
protected RadRibbonBarGroup groupTableLayoutData
References group containing the table-of-contents dialog command.
protected RadRibbonBarGroup groupTableOfContents
Insert-tab group containing the table-insertion menu.
protected RadRibbonBarGroup groupTables
Hosts options for emphasizing table rows and columns with the selected table style.
protected RadRibbonBarGroup groupTableStyleOptions
Hosts the gallery of available table styles.
protected RadRibbonBarGroup groupTableStyles
Insert-tab group for date/time, page-number, and code-block insertion.
protected RadRibbonBarGroup groupText
Hosts revision tracking, acceptance/rejection, and revision navigation controls.
protected RadRibbonBarGroup groupTrackingAndChanges
Hosts the merge-field highlighting and insertion controls on the Mailings tab.
protected RadRibbonBarGroup groupWriteAndInsertFields
Label for the citation-style selector.
protected RadLabelElement labelCitationStyle
Labels the footer bottom-margin control.
protected RadLabelElement labelFooterFromBottom
Labels the header top-margin control.
protected RadLabelElement labelHeaderFromTop
Toggles whether the active section shares this header or footer with the corresponding one in the previous section.
protected RadToggleButtonElement linkToPrevious
Read-only editor used to render the list-style presets displayed in the multilevel-list menu.
protected RadRichTextEditor listStyleSnapshotRichTextBox
observableListStyleCollection
ObservableListStyleCollection
Observable list-style data used to populate the multilevel-list menu.
protected ObservableListStyleCollection observableListStyleCollection
Observable table-style data used to populate the contextual table-style gallery.
protected ObservableTableStyleCollection observableTableStyleCollection
The command tab selected before a contextual tab is shown, so it can be restored when contextual editing ends.
protected RibbonTab openTabCache
Paste-options menu item hosted in the paste split button's menu.
protected RadMenuPasteOptionsButtonItem pasteOptionsItem
Hosts the page/section break and line-numbering drop-downs.
protected RadRibbonBarButtonGroup ribbonButtonGroupBreaks
Hosts the bullet, numbering, and multilevel-list controls.
protected RadRibbonBarButtonGroup ribbonButtonGroupBullets
Hosts the list, indentation, and text-direction controls.
protected RadRibbonBarButtonGroup ribbonButtonGroupBulletsIndentDirection
Hosts the citation-style label and selector.
protected RadRibbonBarButtonGroup ribbonButtonGroupCitationStyle
Hosts the ribbon's clear-formatting button.
protected RadRibbonBarButtonGroup ribbonButtonGroupClearFormatting
Hosts the clear-formatting, font-style, and font-color button groups in the ribbon's font group.
protected RadRibbonBarButtonGroup ribbonButtonGroupClearFormattingFontStylesFontColors
Hosts the left-to-right and right-to-left paragraph direction toggles.
protected RadRibbonBarButtonGroup ribbonButtonGroupDirection
Hosts the endnote-insertion and note-navigation controls.
protected RadRibbonBarButtonGroup ribbonButtonGroupEndnotesAndNavigation
Hosts the text-highlight and font-color buttons.
protected RadRibbonBarButtonGroup ribbonButtonGroupFontColors
Hosts the font family and size selectors together with the font-size adjustment buttons.
protected RadRibbonBarButtonGroup ribbonButtonGroupFontFontSizeIncreaseDecreaseFont
Hosts bold, italic, underline, strikethrough, subscript, and superscript toggles.
protected RadRibbonBarButtonGroup ribbonButtonGroupFontStyles
Hosts the toggle for displaying nonprinting formatting symbols.
protected RadRibbonBarButtonGroup ribbonButtonGroupFormattingSymbols
Hosts the formatting-symbol, text-alignment, and paragraph-background controls.
protected RadRibbonBarButtonGroup ribbonButtonGroupFormattingSymbolsTextAlignParagraphBackColor
Hosts the controls that increase or decrease the selected text's font size.
protected RadRibbonBarButtonGroup ribbonButtonGroupIncreaseDecreaseFont
Hosts the commands that decrease or increase the paragraph's left indent.
protected RadRibbonBarButtonGroup ribbonButtonGroupIndent
Hosts source management, citation-style selection, and bibliography insertion.
protected RadRibbonBarButtonGroup ribbonButtonGroupManageSourcesStyleBibliography
Hosts the control for changing the active paragraph's background color.
protected RadRibbonBarButtonGroup ribbonButtonGroupParagraphBackColor
Groups the previous- and next-revision navigation buttons.
protected RadRibbonBarButtonGroup ribbonButtonGroupPreviousNextChange
Hosts the paragraph text-alignment toggles.
protected RadRibbonBarButtonGroup ribbonButtonGroupTextAlign
Sets the footer bottom margin for the section or sections identified by the editor's current selection.
protected RadSpinElement spinElementFooterFromBottom
Sets the header top margin for the section or sections identified by the editor's current selection.
protected RadSpinElement spinElementHeaderFromTop
Accepts the current revision by default and offers a menu command to accept all revisions.
protected RadSplitButtonElement splitButtonAcceptChange
Opens navigation commands for the next or previous footnote or endnote.
protected RadSplitButtonElement splitButtonNavigateFootnotes
Rejects the current revision by default and offers a menu command to reject all revisions.
protected RadSplitButtonElement splitButtonRejectChange
styleDataCollection
StyleDataCollection
Style data and preview images currently displayed in the Quick Styles gallery.
protected StyleDataCollection styleDataCollection
styles
Dictionary<string, StyleGalleryItem>
Caches Quick Styles gallery items by display name so they can be reused when the gallery is repopulated.
protected Dictionary<string, StyleGalleryItem> styles
Read-only editor used to render previews for the Quick Styles gallery.
protected RadRichTextEditor styleSnapshotRichTextBox
Provides controls for inserting and configuring structured document tags (content controls).
protected RichTextEditorRibbonTab tabDeveloper
Contextual group that exposes the Header/Footer tab while editing a header or footer.
protected ContextualTabGroup tabGroupHeaderAndFooter
Contextual group that contains the Table Style and Table Layout tabs while editing a table.
protected ContextualTabGroup tabGroupTable
Contextual tab for inserting header/footer content and changing section-specific options and positions.
protected RichTextEditorRibbonTab tabHeaderFooter
Contains clipboard, text formatting, paragraph, editing, and style commands.
protected RichTextEditorRibbonTab tabHome
Contains commands for inserting pages, tables, illustrations, links, comments, headers and footers, text, and symbols.
protected RichTextEditorRibbonTab tabInsert
tableStyles
Dictionary<string, TableStyleGalleryItem>
Caches table-style gallery items by style display name for reuse when the gallery is repopulated.
protected Dictionary<string, TableStyleGalleryItem> tableStyles
Provides merge-field insertion, record preview, and mail merge actions.
protected RichTextEditorRibbonTab tabMailings
Contains page setup and page background commands, including watermark options.
protected RichTextEditorRibbonTab tabPageLayout
Contains table-of-contents, footnote and endnote, citation and bibliography, caption, and cross-reference commands.
protected RichTextEditorRibbonTab tabReferences
Provides spell-check, comment, revision, and document-protection controls.
protected RichTextEditorRibbonTab tabReview
Provides row, column, and cell editing commands for the current table.
protected RichTextEditorRibbonTab tabTableLayout
Provides table-style options and a gallery for the current table.
protected RichTextEditorRibbonTab tabTableStyle
Provides the document's flow and paged layout choices.
protected RichTextEditorRibbonTab tabView
Toggle that applies the bold command to the active editor.
protected RadToggleButtonElement toggleButtonBoldStyle
Toggle that switches the active paragraph to a bulleted list.
protected RadToggleButtonElement toggleButtonBulletedList
Toggles the editor's visual highlighting of merge fields; its checked state tracks the editor setting.
protected RadToggleButtonElement toggleButtonHighlightMergeFields
Toggle that applies the italic command to the active editor.
protected RadToggleButtonElement toggleButtonItalicStyle
Toggle that sets the active paragraph's flow direction to left-to-right.
protected RadToggleButtonElement toggleButtonLeftToRightTextDirection
Toggle that switches the active paragraph to a numbered list.
protected RadToggleButtonElement toggleButtonNumberedList
Toggles document protection; removing protection opens a dialog unless an empty password is sufficient.
protected RadToggleButtonElement toggleButtonProtectDocument
Toggles page repetition for the current table row. It is enabled for the first row or when the preceding row repeats; disabling it may clear repeat flags for that row's merged group and later rows.
protected RadToggleButtonElement toggleButtonRepeatHeaderRows
Toggle that sets the active paragraph's flow direction to right-to-left.
protected RadToggleButtonElement toggleButtonRightToLeftTextDirection
Toggle that shows or hides formatting symbols in the document.
protected RadToggleButtonElement toggleButtonShowFormattingSymbols
Toggles comment visibility without changing the document's comment content.
protected RadToggleButtonElement toggleButtonShowHideComments
Toggle that applies the strikethrough command to the active editor.
protected RadToggleButtonElement toggleButtonStrikethroughStyle
Toggle that applies the subscript command to the active editor.
protected RadToggleButtonElement toggleButtonSubscript
Toggle that applies the superscript command to the active editor.
protected RadToggleButtonElement toggleButtonSuperscript
Toggle that centers the active paragraph.
protected RadToggleButtonElement toggleButtonTextAlignCenter
Toggle that justifies the active paragraph.
protected RadToggleButtonElement toggleButtonTextAlignJustify
Toggle that aligns the active paragraph to the left.
protected RadToggleButtonElement toggleButtonTextAlignLeft
Toggle that aligns the active paragraph to the right.
protected RadToggleButtonElement toggleButtonTextAlignRight
Toggles whether subsequent edits are recorded as revisions.
protected RadToggleButtonElement toggleButtonTrackChanges
Toggle that applies the underline command to the active editor.
protected RadToggleButtonElement toggleButtonUnderlineStyle
Groups rich-text, plain-text, picture, and repeating-section content-control buttons.
protected RadRibbonBarButtonGroup topContentControlsButtonGroup
Properties
Gets or sets the RadRichTextEditor control that this ribbon bar is associated with, enabling synchronized operations and automatic event handling.
public RadRichTextEditor AssociatedRichTextEditor { get; set; }
Gets or sets the version of built-in styles to use for document formatting, controlling the appearance and behavior of predefined document styles.
public BuiltInStylesVersion BuiltInStylesVersion { get; set; }
Gets the collection of ribbon command tabs that organize rich text editing functionality into logical groupings such as Home, Insert, Page Layout, and References.
[Browsable(true)]
[RadEditItemsAction]
[RadNewItem("Add New Tab...", true, true, false)]
public override RadRibbonBarCommandTabCollection CommandTabs { get; }
Overrides:
Gets or sets whether the Key Map (Office 2007-style accelerator keys mapping) is enabled for this ribbon bar, providing keyboard shortcuts for ribbon commands.
[Browsable(true)]
public override bool EnableKeyMap { get; set; }
Overrides:
Gets or sets the file name of the currently opened document, which controls the behavior of the Save button by preventing the SaveFileDialog from appearing when set.
[Browsable(false)]
public string OpenedFileName { get; set; }
Gets the collection of items displayed in the quick access toolbar, providing convenient access to frequently used rich text editing commands.
[Browsable(true)]
[RadEditItemsAction]
[RadNewItem("Type here", true, false)]
public override RadItemOwnerCollection QuickAccessToolBarItems { get; }
Overrides:
Gets the currently active rich text box editor from the associated RadRichTextEditor, which is used for executing commands and accessing document content.
protected virtual RadRichTextBox RichTextBoxActiveEditor { get; }
The active RadRichTextBox instance.
Exceptions: InvalidOperationExceptionThrown when AssociatedRichTextEditor is null.
Gets or sets whether the toggle switch enabling the Simplified ribbon style is visible.
[Browsable(true)]
public override bool ShowLayoutModeButton { get; set; }
Overrides:
This property is not relevant for this class.
[Browsable(false)]
[RadEditItemsAction]
public override RadItemOwnerCollection StartMenuItems { get; }
Overrides:
This property is not relevant for this class.
[Browsable(false)]
[RadEditItemsAction]
public override RadItemOwnerCollection StartMenuRightColumnItems { get; }
Overrides:
Lazily creates the reusable table-look options for gallery previews, initializing them from the ribbon's table-style checkboxes.
protected virtual TableLook TableLook { get; }
Gets the theme class name used for styling this control, returning the base RadRibbonBar type name for consistent theming behavior.
public override string ThemeClassName { get; }
Overrides:
Methods
Refreshes comment, undo/redo, and header/footer ribbon state after a command runs in the active editor.
protected virtual void ActiveEditor_CommandExecuted(object sender, CommandExecutedEventArgs e)
The active rich text box whose command was executed.
eCommandExecutedEventArgsThe command-executed event data is not used by this handler.
Refreshes font and table-style controls to reflect the active editor's current selection style.
Opens a document in the associated editor and, only after the open dialog returns OK, remembers the selected file and closes the backstage view. Does nothing at design time or when no editor is associated.
Executes the default save command using the remembered file name when available; a canceled save dialog leaves the backstage view open. Does nothing at design time or when no editor is associated.
Applies the selected button's horizontal and vertical content alignment to the current table-cell selection.
protected virtual void ButtonCellAlignment_ToggleStateChanged(object sender, StateChangedEventArgs args)
The alignment button whose tagged values identify the requested cell alignment.
argsStateChangedEventArgsThe handler applies an alignment only when the button's new state is On.
Toggles spell checking in the active editor and enables or disables the next-error command to match.
protected virtual void ButtonEnableSpellCheck_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the image-picker command and inserts the selected image when its extension is supported by a built-in or custom decoder.
Inserts a comment at the current selection, or over the current word when the selection is empty, and enables comment display.
Inserts a comment over the current selection, or over the current word when the selection is empty, then selects it and shows comments.
Requests a save with the html format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Requests a save with the pdf format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Requests a save with the txt format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Requests a save with the rtf format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Requests a save with the docx format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Requests display-name mode for all fields; fields without a display-name fragment show their result instead.
Requests a save with the xaml format identifier. The shared save flow stores the selected file on an OK result, leaves the backstage view open on Cancel, and does nothing at design time or without an associated editor.
Updates repeat-header-row availability and checked state, and enables content-control properties when the caret is inside one.
Updates whether the current table uses alternating column banding from its style.
protected virtual void CheckBoxBandedColumns_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Banded Columns check box.
argsStateChangedEventArgsThe new toggle state applied to the table's column-banding style option.
Updates whether the current table uses alternating row banding from its style.
protected virtual void CheckBoxBandedRows_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Banded Rows check box.
argsStateChangedEventArgsThe new toggle state applied to the table's row-banding style option.
Toggles separate first-page headers and footers for the current section.
protected virtual void CheckBoxDifferentFirstPage_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Different First Page check box.
argsStateChangedEventArgsThe state-change event data is not used by this handler.
Toggles the document-wide option for different headers and footers on odd and even pages.
protected virtual void CheckBoxDifferentOddAndEvenPages_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Different Odd & Even Pages check box.
argsStateChangedEventArgsThe state-change event data is not used by this handler.
Updates whether the current table uses the style's first-column formatting.
protected virtual void CheckBoxFirstColumn_ToggleStateChanged(object sender, StateChangedEventArgs args)
The First Column check box.
argsStateChangedEventArgsThe new toggle state applied to the table's first-column style option.
Updates whether the current table uses the style's first-row formatting.
protected virtual void CheckBoxHeaderRow_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Header Row check box.
argsStateChangedEventArgsThe new toggle state applied to the table's first-row style option.
Updates whether the current table uses the style's last-column formatting.
protected virtual void CheckBoxLastColumn_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Last Column check box.
argsStateChangedEventArgsThe new toggle state applied to the table's last-column style option.
Updates whether the current table uses the style's last-row formatting.
protected virtual void CheckBoxTotalRow_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Total Row check box.
argsStateChangedEventArgsThe new toggle state applied to the table's last-row style option.
Creates and initializes the child elements of the ribbon bar, including all tabs, groups, and command elements for rich text editing functionality.
protected override void CreateChildItems(RadElement parent)
The parent RadElement that will contain the child items.
Overrides:
Synchronizes link, page-variant, and position controls when the active editing context changes to a header or footer.
protected virtual void CurrentEditingContext_PropertyChanged(object sender, PropertyChangedEventArgs e)
The current editing context.
ePropertyChangedEventArgsIdentifies the changed context property; only a change to its type is handled.
Releases the managed and unmanaged resources used by the RichTextEditorRibbonBar, including event handlers and associated editor references.
protected override void Dispose(bool disposing)
True if disposing managed resources; false if called from finalizer.
Overrides:
Refreshes comment, undo/redo, and header/footer controls after a document command executes.
protected virtual void Document_CommandExecuted(object sender, DocumentCommandExecutedEventArgs e)
The document on which the command executed.
eDocumentCommandExecutedEventArgsThe command-executed event data is not used by this handler.
Applies the selected automatic-fit or fixed-width mode to the table containing the caret.
Opens custom column settings for the More Columns item; otherwise applies the selected section-column layout.
Refreshes the citation menu's source entries from the associated document while preserving its static commands.
protected virtual void dropDownButtonInsertCitation_DropDownOpening(object sender, CancelEventArgs e)
The citation drop-down button.
eCancelEventArgsThe cancel event data is not used by this handler.
Rebuilds the merge-field menu from the associated document's current mail merge data source columns, adding an empty placeholder when none are available.
protected virtual void dropDownButtonInsertMergeField_DropDownOpening(object sender, CancelEventArgs e)
The Insert Merge Field drop-down button.
eCancelEventArgsThe cancel event data is not used by this handler.
Inserts a merge field whose property path is the selected data source column, using the document's current field display mode.
Opens custom watermark settings or removes the watermark for the corresponding menu commands.
Keeps a list-view drop-down open when the mouse is over one of its scroll bars as it closes.
protected virtual void DropDownButtonWithListViewMenuItem_DropDownClosing(object sender, RadPopupClosingEventArgs args)
The drop-down button whose menu is closing.
argsRadPopupClosingEventArgsThe closing event data; cancellation is applied only for mouse-initiated closing.
Applies the selected bibliographic reference style to the active editor.
protected virtual void DropDownListCitationStyle_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
The citation-style selector.
ePositionChangedEventArgsThe event data is not used by this handler.
Returns focus to the associated editor after the font popup closes.
protected virtual void DropDownListFont_PopupClosed(object sender, RadPopupClosedEventArgs args)
Applies the selected point size after converting it to the device-independent unit used by the editor.
protected virtual void DropDownListFontSize_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
Executes a command without an explicit parameter and optionally restores focus to the editor control.
protected virtual void ExecuteCommand(RichTextBoxCommandBase command, bool shouldFocus = true)
The command to execute.
shouldFocusboolWhether to focus the associated editor control after execution.
Focus restoration is skipped while a font-family command leaves the font drop-down open.
Executes a command with a parameter and restores focus to the editor control.
protected virtual void ExecuteCommand(RichTextBoxCommandBase command, object parameter)
The command to execute.
parameterobjectThe value passed to the command.
Focus restoration is skipped while a font-family command leaves the font drop-down open.
Replaces the menu's list view with built-in presets and the current document's list styles.
protected virtual void FillListStylesListView()
Rebuilds the gallery from the current style data, reusing cached items and wiring each item to the style-application handler.
protected virtual void FillStylesGallery()
Rebuilds the table-style gallery, grouping cached items by their table-style group name.
protected virtual void FillTableStylesGallery()
Creates the localized menu choices for accepting the current revision or all revisions.
protected virtual RadItemCollection GetAcceptChangeItems()
The current-revision and accept-all menu items, in that order.
Creates the localized menu choices for automatic table-width fitting and fixed column widths.
protected virtual RadItemCollection GetAutoFitItems()
The AutoFit and Fixed column-layout items, in that order.
Creates the built-in bibliographic reference styles available in the ribbon selector.
protected virtual IEnumerable<BibliographicReferenceStyleBase> GetCitationStyleItems()
IEnumerable<BibliographicReferenceStyleBase>
The APA Fifth Edition, Harvard Anglia 2008, and ISO 690 first-element-and-date styles.
Gets the paragraph layout box at the caret, or at the start of the first selected range.
protected virtual ParagraphLayoutBox GetCurrentParagraphBox()
The paragraph layout box for that position, or null if none is available.
Creates the default point-size choices for the font-size selector.
protected virtual BindingList<int> GetFontSizeItems()
A bindable list containing the ribbon's standard font-size choices, from 8 to 72 points.
Creates the multilevel-list presets recognized by ListViewElement_CurrentItemChanging(object, ListViewItemChangingEventArgs).
protected virtual List<ListViewDataItem> GetGetMultiLevelListViewDataItems()
List<ListViewDataItem>
List-view items tagged for no style, bulleted, numbered, parenthesized-numbered, and hierarchical-numbered lists.
Creates the separator and add-source command that remain in the citation menu alongside document sources.
protected virtual RadItemCollection GetInsertCitationItems()
The static items for the citation drop-down menu.
Creates the table menu with a dimension-selection grid and a command that opens the full table-insertion dialog.
protected virtual RadItemCollection GetInsertTableItems()
The items to add to the Insert Table drop-down button.
Creates line-numbering mode choices, paragraph suppression, and the line-numbering options command.
protected virtual RadItemCollection GetLineNumberingItems()
Menu items tagged for the line-numbering handlers.
Creates the list-style menu with preset selection and a command for defining a new list style.
protected virtual RadItemCollection GetMultiLevelListItems()
The menu items to add to the multilevel-list button.
Creates menu items for navigating to the next or previous footnote or endnote.
protected virtual RadItemCollection GetNotesNavigationItems()
The four note-navigation items added to the footnote split button.
Returns the gallery group with the specified text, creating and adding it when no matching group exists.
public RadGalleryGroupItem GetOrAddGroupItem(string groupName)
The text used to find or label the gallery group.
Returns:The existing or newly added group.
Creates page, column, line, and section break choices for the Page Layout ribbon.
protected virtual RadItemCollection GetPageBreakItems()
Menu items tagged for the corresponding break commands.
Creates the page-margin presets offered by the ribbon.
protected virtual RadItemCollection GetPageMarginItems()
Menu items tagged with their corresponding PageMarginTypes values.
Creates portrait, landscape, and rotated-page orientation choices.
protected virtual RadItemCollection GetPageOrientationItems()
Menu items tagged with their corresponding PageOrientation values.
Creates localized paper-size menu items with dimensions formatted in the current region's measurement units.
protected virtual RadItemCollection GetPaperSizeItems()
Menu items tagged with their corresponding PaperTypes values.
Gets a collection of standard paper sizes including ISO A-series, B-series, and common regional formats for document page layout configuration.
Creates the localized menu choices for rejecting the current revision or all revisions.
protected virtual RadItemCollection GetRejectChangeItems()
The current-revision and reject-all menu items, in that order.
Creates common section-column layouts and the option to open custom column settings.
protected virtual RadItemCollection GetSectionColumnItems()
Menu items tagged with a layout or the custom-settings command marker.
Creates the localized selection menu items for a table cell, column, row, and the whole table.
protected virtual RadItemCollection GetTableToolsItems()
The four table-selection menu items, in cell, column, row, and table order.
Creates the predefined watermark picker plus custom-watermark and removal commands.
protected virtual RadItemCollection GetWatermarkItems()
The menu items to add to the watermark drop-down button.
Refreshes comment command availability, undo/redo state, and header/footer options after a document command.
protected virtual void HandleDocumentCommandExecuted(RadDocument document)
The document whose history determines whether Undo and Redo are enabled.
Refreshes the font and paragraph controls from the active editor's current selection style without executing their commands.
protected virtual void HandleFontStylePropertiesOnCurrentEditingStyleChanged()
Synchronizes cell-alignment and table-style option controls with the current table, showing its contextual tabs when needed.
protected virtual void HandleTableStylePropertiesOnCurrentEditingStyleChanged()
Initializes all ribbon tabs, groups, buttons, and other UI elements that comprise the rich text editor ribbon interface.
protected virtual void Initialize()
Creates a backstage command item with the supplied text, raster image, and SVG image.
protected virtual BackstageButtonItem InitializeBackstageViewButtonItem(string text, Image img, RadSvgImage svg)
The localized caption displayed by the command item.
imgImageThe raster image assigned to the command item.
svgRadSvgImageThe SVG image assigned to the command item.
Returns:A backstage command item initialized with the supplied content and the standard backstage spacing.
Creates a backstage command item with the supplied text and raster image, applying the standard backstage margin and padding.
protected virtual BackstageButtonItem InitializeBackstageViewButtonItem(string text, Image image)
The localized caption displayed by the command item.
imageImageThe raster image assigned to the command item.
Returns:A backstage command item initialized with the supplied text and image.
Creates a large ribbon button with an image above its caption and sets its SVG image source.
protected virtual RadButtonElement InitializeBigButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A large button with centered, wrapping text below the image.
Creates a large ribbon button with an image above its centered, wrapping caption.
Creates a large drop-down button with an image above its caption and sets its SVG image source.
protected virtual RadDropDownButtonElement InitializeBigDropDownButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A large drop-down button with its menu arrow below the action content.
Creates a large drop-down button with its image above the caption and menu arrow below the action content.
Creates a large split button with an image above its caption and sets its SVG image source.
protected virtual RadSplitButtonElement InitializeBigSplitButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A large split button with its menu arrow below the action content.
Creates a large split button that places its image above its caption and menu arrow below the action content.
Creates and initializes a new ribbon bar button group for organizing multiple related buttons within a ribbon group.
protected virtual RadRibbonBarButtonGroup InitializeButtonGroup()
A new RadRibbonBarButtonGroup instance configured with default settings for button grouping.
Creates a check box element for use in a ribbon group.
protected virtual RadCheckBoxElement InitializeCheckBox(string text)
The caption assigned to the check box.
Returns:A new check box element with its text set to text.
Creates and initializes a new ribbon bar group with the specified text for organizing related commands within a ribbon tab.
protected virtual RadRibbonBarGroup InitializeGroup(string text)
The display text for the ribbon group header.
Returns:A new RadRibbonBarGroup instance configured with the specified text and default padding.
Initializes the list snapshot rich text box used for list style preview and rendering, configuring it with appropriate settings for list visualization.
protected virtual void InitializeListSnapshotRichTextBox()
Creates a medium ribbon button that places its image before its text and sets its SVG image source.
protected virtual RadButtonElement InitializeMediumButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A medium button with image-before-text layout.
Creates a medium drop-down button with image-before-text layout and sets its SVG image source.
protected virtual RadDropDownButtonElement InitializeMediumDropDownButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A medium drop-down button that opens its menu downward.
Creates a medium drop-down button with its image before the caption and a downward-opening menu.
Creates a medium split button with image-before-text layout and sets its SVG image source.
protected virtual RadSplitButtonElement InitializeMediumSplitButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button caption.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A medium split button that opens its menu downward.
Creates a medium split button that places its image before its caption and opens its menu downward.
Creates the paste menu's localized header and paste-options item, storing the latter in pasteOptionsItem.
protected virtual RadItemCollection InitializePasteOptiopnsItems()
The items to add to the paste split button's menu.
Creates a standard Quick Access Toolbar button and assigns both its raster and SVG images.
protected virtual RadButtonElement InitializeQuickAccessButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe button's text value.
svgRadSvgImageThe SVG image assigned to the button.
Returns:An image-only button configured with the standard Quick Access Toolbar class and padding.
Creates an image-only Quick Access Toolbar button with centered image alignment and standard ribbon styling.
Creates a small image-only ribbon button and sets its SVG image source for use when SVG rendering is enabled.
protected virtual RadButtonElement InitializeSmallButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe caption assigned to the button.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A small button with centered imagery and a 20-by-20 minimum size.
Creates a small image-only ribbon button with centered imagery and a 20-by-20 minimum size.
Creates a small image-only drop-down button with a right-positioned menu arrow and sets its SVG image source.
protected virtual RadDropDownButtonElement InitializeSmallDropDownButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe caption assigned to the button.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A small drop-down button element.
Creates a small image-only drop-down button with a right-positioned menu arrow.
Initializes the snapshot rich text box used for style preview and rendering, configuring it with appropriate settings for style visualization.
protected virtual void InitializeSnapshotRichTextBox()
Creates and initializes a new ribbon tab with the specified text and selection state for organizing related rich text editing commands.
protected virtual RichTextEditorRibbonTab InitializeTab(string text, bool selected)
The display text for the ribbon tab.
selectedboolTrue to initially select this tab; false to leave it unselected.
Returns:A new RichTextEditorRibbonTab instance configured with the specified settings.
Creates an image-only toggle button with a 20-by-20 minimum size and sets its SVG image source.
protected virtual RadToggleButtonElement InitializeToggleButton(Image img, string text, RadSvgImage svg)
The raster image assigned to the button.
textstringThe caption assigned to the button.
svgRadSvgImageThe vector image assigned to the button's SVG image source; the raster image is assigned separately.
Returns:A toggle button configured for image-only display.
Creates an image-only toggle button with a 20-by-20 minimum size.
Adds a bibliographic source when the add-source item is selected; otherwise inserts a citation for the selected source.
Inserts a table using the selected grid dimensions, converting the grid's zero-based indexes to row and column counts.
protected virtual void InsertTable_SelectionChanged(object sender, TableSelectionChangedEventArgs e)
The table-dimension selection grid.
eTableSelectionChangedEventArgsThe selected zero-based row and column indexes.
Checks that a font family provides regular, italic, and bold styles.
protected virtual bool IsFontStyleValid(FontFamily family)
The font family to inspect.
Returns:true when all three styles are available.
Toggles whether the active section shares its current header or footer with the previous section.
protected virtual void LinkToPrevious_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Link to Previous toggle button.
argsStateChangedEventArgsThe state-change event data is not used by this handler.
Applies the tag of the list view's selected preset as the current list style, then clears and cancels the pending selection.
protected virtual void ListViewElement_CurrentItemChanging(object sender, ListViewItemChangingEventArgs e)
Refreshes the multilevel-list menu when the observable list-style collection changes.
protected virtual void ObservableListStyleCollection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Handles binding context changes by updating style event handlers to ensure proper synchronization with the new data context.
protected override void OnBindingContextChanged(EventArgs e)
The event arguments for the binding context change.
Overrides:
Handles the load event by applying the current theme to child controls and ensuring proper initialization of the ribbon bar's visual appearance.
protected override void OnLoad(Size desiredSize)
The desired size for the control during the load operation.
Overrides:
Handles property change notifications by forwarding them to the base class and managing property-specific update logic.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property that changed.
Overrides:
Handles theme changes by updating icon sets and visual appearance to match the current theme (standard, dark, or modern style).
protected override void OnThemeChanged()
Overrides:
Handles theme name changes by synchronizing the theme across all child controls in the ribbon bar to maintain consistent appearance.
protected override void OnThemeNameChanged(ThemeNameChangedEventArgs e)
The event arguments containing information about the theme name change.
Overrides:
Processes focus requests for ribbon elements by preventing focus to maintain focus on the associated rich text editor.
protected override bool ProcessFocusRequested(RadElement element)
The RadElement requesting focus.
Returns:Always returns false to prevent the ribbon bar from receiving focus.
Overrides:
Schedules a Quick Styles source refresh when the event sender is a RadRichTextBox.
Removes style-change and command handlers from the cached editor and subscribes the editor reported by the event.
protected virtual void RichTextBoxElement_ActiveDocumentEditorChanged(object sender, ActiveDocumentEditorChangedEventArgs e)
The rich text box element reporting the active editor change.
eActiveDocumentEditorChangedEventArgsProvides the new active editor.
Adds or removes the contextual Header/Footer tab as the editor enters or leaves header/footer editing mode.
Synchronizes the document-protection toggle with the associated editor's protection setting.
Synchronizes comment, track-changes, merge-field, and formatting-symbol toggles with editor properties.
protected virtual void RichTextBoxElement_RadPropertyChanged(object sender, RadPropertyChangedEventArgs e)
The rich text box element whose property changed.
eRadPropertyChangedEventArgsIdentifies the changed property.
Scales the control and its backstage view when DPI changes or scaling is applied, ensuring proper appearance at different display scales.
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
The scaling factor to apply to the control dimensions.
specifiedBoundsSpecifiedThe bounds specification that determines which dimensions to scale.
Overrides:
Creates the list-style collection from the associated document and refreshes the multilevel-list menu when the supplied editor is not null.
protected virtual void SetInitialListStyleItemSource(RadRichTextBox radRichTextBox)
A non-null editor enables initialization; the collection is built from the associated editor's document.
Creates the Quick Styles data collection from the associated document and populates the gallery when the supplied editor is not null.
protected virtual void SetInitialQuickStyleItemSource(RadRichTextBox radRichTextBox)
A non-null editor enables initialization; the collection is built from the associated editor's document.
Creates the table-style collection from the associated document's style repository when the supplied editor is not null.
protected virtual void SetInitialTableStyleItemSource(RadRichTextBox radRichTextBox)
A non-null editor enables initialization; the collection is built from the associated editor's document.
Detaches the current list-style collection and schedules its replacement on the preview editor's dispatcher.
protected virtual void SetListStyleItemSource(RadRichTextBox radRichTextBox)
The editor passed to the deferred list-style initialization step.
Releases the current Quick Styles data collection and schedules its replacement on the preview editor's dispatcher.
protected virtual void SetQuickStyleItemSource(RadRichTextBox radRichTextBox)
The editor passed to the deferred initialization step.
Releases the current table-style collection and schedules its replacement on the preview editor's dispatcher.
protected virtual void SetTableStyleItemSource(RadRichTextBox radRichTextBox)
The editor passed to the deferred table-style initialization step.
Determines whether a font family meets the style requirements and is registered with the document font manager.
protected virtual bool ShouldLoadCustomFont(FontFamily family)
The font family to check.
Returns:true when the family is valid and registered.
Applies the spin control's value as the footer bottom margin for the selected section or sections.
Rebuilds the Quick Styles gallery when its style data collection changes.
protected virtual void StyleDataCollection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Attaches the handlers that apply changes from the six table-style option check boxes.
protected virtual void SubscribeFromTableLookItemEvents()
Attaches the state-change handler to all nine cell-alignment buttons.
protected virtual void SubscribeToTableCellAlignmentItemEvents()
Runs the bold command when the bold toggle changes state.
protected virtual void ToggleButtonBoldStyle_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the active editor's command to toggle a bulleted list for the current paragraph.
protected virtual void ToggleButtonBulletedList_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the italic command when the italic toggle changes state.
protected virtual void ToggleButtonItalicStyle_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's flow direction to left-to-right.
protected virtual void ToggleButtonLeftToRightTextDirection_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the active editor's command to toggle a numbered list for the current paragraph.
protected virtual void ToggleButtonNumberedList_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's flow direction to right-to-left.
protected virtual void ToggleButtonRightToLeftTextDirection_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the active editor's command to toggle formatting-symbol visibility.
protected virtual void ToggleButtonShowFormattingSymbols_ToggleStateChanged(object sender, StateChangedEventArgs args)
Toggles comment visibility without changing the document's comment content.
protected virtual void ToggleButtonShowHideComments_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Show/Hide Comments toggle button.
argsStateChangedEventArgsThe state-change event data is not used by this handler.
Runs the strikethrough command when the strikethrough toggle changes state.
protected virtual void ToggleButtonStrikethroughStyle_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the subscript command when the subscript toggle changes state.
protected virtual void ToggleButtonSubscript_ToggleStateChanged(object sender, StateChangedEventArgs args)
Runs the superscript command when the superscript toggle changes state.
protected virtual void ToggleButtonSuperscript_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's text alignment to centered.
protected virtual void ToggleButtonTextAlignCenter_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's text alignment to justified.
protected virtual void ToggleButtonTextAlignJustify_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's text alignment to left.
protected virtual void ToggleButtonTextAlignLeft_ToggleStateChanged(object sender, StateChangedEventArgs args)
Sets the active paragraph's text alignment to right.
protected virtual void ToggleButtonTextAlignRight_ToggleStateChanged(object sender, StateChangedEventArgs args)
Toggles whether subsequent edits in the active editor are recorded as revisions.
protected virtual void ToggleButtonTrackChanges_ToggleStateChanged(object sender, StateChangedEventArgs args)
The Track Changes toggle button.
argsStateChangedEventArgsThe state-change event data is not used by this handler.
Runs the underline command when the underline toggle changes state.
protected virtual void ToggleButtonUnderlineStyle_ToggleStateChanged(object sender, StateChangedEventArgs args)
Marks the matching cell-alignment button as checked and clears the other alignment buttons.
protected virtual void ToggleCellAlignmentButton(RadToggleButtonElement button)
The alignment button to mark as checked.
Detaches the handlers from the six table-style option check boxes.
protected virtual void UnsubscribeFromTableLookItemEvents()
Detaches the state-change handler from all nine cell-alignment buttons.
protected virtual void UnsubscribeToTableCellAlignmentItemEvents()
Removes the font and paragraph control handlers so programmatic formatting-state updates do not execute editor commands.
protected virtual void UnwireStyleEvents()
Synchronizes the document-protection and spell-checking toggles and refreshes caret-dependent controls.
protected virtual void UpdateButtonsStateOnDocumentChanged()
Applies the selected predefined watermark and clears the selection so the same item can be selected again.
Wires up all event handlers for ribbon buttons, menu items, and other UI elements to provide rich text editing functionality.
protected virtual void WireEvents()
Subscribes the font and paragraph controls to formatting-command handlers and the font popup's focus-restoration handler.
protected virtual void WireStyleEvents()