Class PasteOptionsPopup
Represets a popup control with special placement rules that is used for hosting the PasteOptions UI.
Inherited Members
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class PasteOptionsPopup : MiniToolBarBase, IThemeChangeListener, IPasteOptionsPopup
Constructors
PasteOptionsPopup()
Fields
canUnwireEvents
Declaration
protected bool canUnwireEvents
Field Value
System.Boolean
|
currentCaretPosition
popupLayoutSize
Declaration
protected readonly Size popupLayoutSize
Field Value
System.Drawing.Size
|
Properties
DropDownButton
Gets the drop-down button control inside the popup.
Declaration
public RadDropDownButton DropDownButton { get; }
Property Value
RadDropDownButton
|
PasteOptionsPicker
Gets the menu item holding the paste options buttons.
Declaration
public RadMenuPasteOptionsToggleItem PasteOptionsPicker { get; }
Property Value
RadMenuPasteOptionsToggleItem
|
Methods
CalculatePopupLocation(RadRichTextBox)
Declaration
protected virtual Point CalculatePopupLocation(RadRichTextBox richTextBox)
Parameters
RadRichTextBox
richTextBox
|
Returns
Point
|
GetPasteOptiopnsItems()
GetScreenPopupLocation(Point)
Declaration
protected virtual Point GetScreenPopupLocation(Point location)
Parameters
Point
location
|
Returns
System.Drawing.Point
|
Hide(RadRichTextBox)
Hides the popup with the paste options items.
Declaration
public void Hide(RadRichTextBox richTextBox)
Parameters
RadRichTextBox
richTextBox
The RadRichTextBox object executing the PasteOptions logic. |
HidePopup()
OnDropDownMenuPopupClosed(Object, EventArgs)
Declaration
protected virtual void OnDropDownMenuPopupClosed(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnPasteOptionsDropDownButtonKeyDown(Object, KeyEventArgs)
Declaration
protected virtual void OnPasteOptionsDropDownButtonKeyDown(object sender, KeyEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Forms.KeyEventArgs
e
|
Show(Point, RadRichTextBox)
Shows the popup with the paste options items at the specified location.
Declaration
public void Show(Point location, RadRichTextBox richTextBox)
Parameters
System.Drawing.Point
location
The location at which the popup will be shown. |
RadRichTextBox
richTextBox
The RadRichTextBox object executing the PasteOptions logic. |
Show(RadRichTextBox)
Attaches the Popup to the given RichTextBox and initializes its content.
Declaration
public void Show(RadRichTextBox richTextBox)
Parameters
RadRichTextBox
richTextBox
The RadRichTextBox object executing the PasteOptions logic. |
Implements
SyncTheme()
Declaration
protected virtual void SyncTheme()
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
UpdateDropDownButtonIcon(String)
Declaration
protected virtual void UpdateDropDownButtonIcon(string themeName)
Parameters
System.String
themeName
|
UpdatePopupLocation()
Declaration
protected virtual void UpdatePopupLocation()
UpdatePopupLocation(Point)
WireEvents()
Declaration
protected virtual void WireEvents()