Generates items for the context menu.
Definition
Namespace:Telerik.WinForms.RichTextEditor.RichTextBoxUI.Menus
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ContextMenuContentBuilder : IContextMenuContentBuilder
Inheritance: objectContextMenuContentBuilder
Implements:
Constructors
Initializes a new instance of the ContextMenuContentBuilder class.
public ContextMenuContentBuilder()
Properties
public WordInfo IncorrectWordInfo { get; set; }
Implements:
Gets or sets the RadRichTexBox to get context from.
public RadRichTextBox RadRichTextBox { get; set; }
Implements:
Methods
Constructs collection of context menu groups, depending on the context determined from RadRichTextBox and IncorrectWordInfo properties.
public virtual ContextMenuGroupCollection Construct()
Collection of context menu groups.
Implements:
Creates the clipboard commands menu items (cut, copy, paste, etc.).
Creates the code block commands menu items.
Creates the field commands menu items.
Creates the floating block commands menu items.
Creates the headers/footers commands.
protected virtual ContextMenuGroup CreateHeaderFooterCommands(bool forHeader)
If set to true, creates commands for header, otherwise creates commands for footer.
Returns:Creates the hyperlink commands menu items.
protected virtual ContextMenuGroup CreateHyperlinkCommands(bool forExistingHyperlink)
True if group should be created for editing of existing hyperlink, otherwise false.
Returns:ContextMenuGroup containing hyperlink commands.
Creates the image commands menu items.
Creates the list commands menu items.
Creates the spell checking suggestions menu items.
Creates the table commands menu items.
Creates the text edit commands menu items.
protected virtual ContextMenuGroup CreateTextEditCommands()
ContextMenuGroup containing text editing commands.
Creates the clipboard commands menu items (cut, copy, paste, etc.).