Class
ContextMenuContentBuilder

Generates items for the context menu.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Menus

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ContextMenuContentBuilder : IContextMenuContentBuilder

Inheritance: objectContextMenuContentBuilder

Implements: IContextMenuContentBuilder

Constructors

ContextMenuContentBuilder()

Initializes a new instance of the ContextMenuContentBuilder class.

Declaration

cs-api-definition
public ContextMenuContentBuilder()

Properties

IncorrectWordInfo

Declaration

cs-api-definition
public WordInfo IncorrectWordInfo { get; set; }

Property Value

WordInfo

Implements IContextMenuContentBuilder.IncorrectWordInfo

RadRichTextBox

Gets or sets the RadRichTexBox to get context from.

Declaration

cs-api-definition
public RadRichTextBox RadRichTextBox { get; set; }

Property Value

RadRichTextBox

Implements IContextMenuContentBuilder.RadRichTextBox

Methods

Construct()

Constructs collection of context menu groups, depending on the context determined from RadRichTextBox and IncorrectWordInfo properties.

Declaration

cs-api-definition
public virtual ContextMenuGroupCollection Construct()

Returns

ContextMenuGroupCollection

Collection of context menu groups.

Implements IContextMenuContentBuilder.Construct()

CreateAddTextBoxCommand()

Creates the AddTextBoxCommand in the menu.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateAddTextBoxCommand()

Returns

ContextMenuGroup

CreateClipboardCommands()

Creates the clipboard commands menu items (cut, copy, paste, etc.).

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateClipboardCommands()

Returns

ContextMenuGroup

CreateCodeBlockCommands()

Creates the code block commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateCodeBlockCommands()

Returns

ContextMenuGroup

CreateEditTextBoxCommand()

Creates the CreateEditTextBox in the menu.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateEditTextBoxCommand()

Returns

ContextMenuGroup

CreateFieldCommands()

Creates the field commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateFieldCommands()

Returns

ContextMenuGroup

CreateFloatingBlockCommands()

Creates the floating block commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateFloatingBlockCommands()

Returns

ContextMenuGroup

CreateFloatingShapesCommands()

Creates the floating block commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateFloatingShapesCommands()

Returns

ContextMenuGroup

CreateHeaderFooterCommands(bool)

Creates the headers/footers commands.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateHeaderFooterCommands(bool forHeader)

Parameters

forHeader

bool

If set to true, creates commands for header, otherwise creates commands for footer.

Returns

ContextMenuGroup

CreateHyperlinkCommands(bool)

Creates the hyperlink commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateHyperlinkCommands(bool forExistingHyperlink)

Parameters

forExistingHyperlink

bool

True if group should be created for editing of existing hyperlink, otherwise false.

Returns

ContextMenuGroup

ContextMenuGroup containing hyperlink commands.

CreateImageCommands()

Creates the image commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateImageCommands()

Returns

ContextMenuGroup

CreateListCommands()

Creates the list commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateListCommands()

Returns

ContextMenuGroup

CreateSpellCheckingSuggestions()

Creates the spell checking suggestions menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateSpellCheckingSuggestions()

Returns

ContextMenuGroup

CreateTableCommands()

Creates the table commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateTableCommands()

Returns

ContextMenuGroup

CreateTextEditCommands()

Creates the text edit commands menu items.

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateTextEditCommands()

Returns

ContextMenuGroup

ContextMenuGroup containing text editing commands.

CreateTrackChangesCommands()

Creates the clipboard commands menu items (cut, copy, paste, etc.).

Declaration

cs-api-definition
protected virtual ContextMenuGroup CreateTrackChangesCommands()

Returns

ContextMenuGroup