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