Menu Item that provides interface for choosing a paste option from the list of available ones.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RadMenuPasteOptionsButtonItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadMenuPasteOptionsButtonItem...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a menu item with buttons for the available paste-formatting choices.
public RadMenuPasteOptionsButtonItem()
Properties
Gets the layout panel that contains the paste-option buttons.
public StackLayoutPanel ButtonsLayout { get; }
Gets the button that merges source formatting with destination formatting when clicked.
public RadButtonElement MergeFormattingButton { get; }
The RadRichTextBox instance that is associated with this control.
public RadRichTextBox Owner { get; set; }
Gets the button that keeps source formatting when clicked.
public RadButtonElement SourceFormattingButton { get; }
Gets the button that pastes text without formatting when clicked.
public RadButtonElement TextOnlyButton { get; }
Uses the standard menu-item theme styles for this specialized paste-options item.
protected override Type ThemeEffectiveType { get; }
Overrides:
Gets the button that applies the destination styles when clicked.
public RadButtonElement UseDefaultStylesButton { get; }
Methods
Creates the button layout and the four paste-option buttons.
protected override void CreateChildElements()
Overrides:
Creates the button that merges the source formatting with the destination.
protected virtual RadButtonElement CreateMergeFormattingButton()
The button element for the merge-formatting choice.
Creates the button that keeps the source formatting.
protected virtual RadButtonElement CreateSourceFormattingButton()
The button element for the keep-source-formatting choice.
Creates the button that pastes text without formatting.
protected virtual RadButtonElement CreateTextOnlyButton()
The button element for the keep-text-only choice.
Creates the button that applies the destination styles.
protected virtual RadButtonElement CreateUseDestinationSylesButton()
The button element for the use-destination-styles choice.
Detaches click handlers from the paste-option buttons before disposing managed resources.
protected override void DisposeManagedResources()
Overrides:
Enables mouse input handling so the menu item can receive clicks on its paste buttons.
protected override void InitializeFields()
Overrides:
Removes the drop-down menu's reserved left column when this item is hosted in its layout.
protected override void OnLoaded()
Overrides:
Called after Owner changes so derived items can update state associated with the editor.
protected virtual void OnOwnerChanged(RadRichTextBox owner)
The new owner, or null when no editor is associated.
Pastes using the specified option in the owner's active editor and returns focus to that editor.
protected virtual void ProceedPasteOption(PasteOption pasteOption)
The formatting option to apply.
This method does nothing when the menu has no owner or the owner has no active editor.
Selects the light or dark images for the option buttons according to the theme.
protected virtual void UpdatePasteOptionsButtonIcons(string themeName)
The theme used to choose the icon palette.