Class ContextMenuContentBuilder
Generates items for the context menu.
Inheritance
Namespace: Telerik.Windows.Controls.RichTextBoxUI.Menus
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ContextMenuContentBuilder : Object, IContextMenuContentBuilder
Constructors
ContextMenuContentBuilder()
Initializes a new instance of the Context
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
Context 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(Boolean)
CreateHyperlinkCommands(Boolean)
Creates the hyperlink commands menu items.
Declaration
protected virtual ContextMenuGroup CreateHyperlinkCommands(bool forExistingHyperlink)
Parameters
System. True if group should be created for editing of existing hyperlink, otherwise false. |
Returns
Context Context |
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
Context Context |
CreateTrackChangesCommands()
Creates the clipboard commands menu items (cut, copy, paste, etc.).
Declaration
protected virtual ContextMenuGroup CreateTrackChangesCommands()