skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PasteOptionsPopup

Represets a popup control with special placement rules that is used for hosting the PasteOptions UI.

Inheritance
System.Object
ShapedForm
MiniToolBarBase
PasteOptionsPopup
Inherited Members
MiniToolBarBase.radRichTextBox
MiniToolBarBase.ShowPopup(Point, RadRichTextBox)
MiniToolBarBase.SetOpacity(Double)
MiniToolBarBase.Dispose(Boolean)
MiniToolBarBase.IsPopupOpen
ShapedForm.OnThemeChanged(ThemeChangedEventArgs)
ShapedForm.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
ShapedForm.SetClientSizeCore(Int32, Int32)
ShapedForm.OnLoad(EventArgs)
ShapedForm.OnPaintBackground(PaintEventArgs)
ShapedForm.OnSizeChanged(EventArgs)
ShapedForm.WndProc(Message)
ShapedForm.ApplicationThemeChanged(Object, ThemeChangedEventArgs)
ShapedForm.ScaleControl(SizeF, BoundsSpecified)
ShapedForm.OnResizeBegin(EventArgs)
ShapedForm.OnResizeEnd(EventArgs)
ShapedForm.OnMove(EventArgs)
ShapedForm.PaintFrame(Graphics)
ShapedForm.PaintBorder(Graphics)
ShapedForm.GetHitTest(Point)
ShapedForm.ApplyTheme(String)
ShapedForm.ApplyShape()
ShapedForm.IsRectangularShape(Int32)
ShapedForm.CreateBorderPath()
ShapedForm.LOWORD(Int32)
ShapedForm.ShapedControl
ShapedForm.BackColor
ShapedForm.BorderColor
ShapedForm.BorderWidth
ShapedForm.ForeColor
ShapedForm.Font
ShapedForm.BorderAlignment
ShapedForm.AllowResize
ShapedForm.Shape
ShapedForm.ThemeName
ShapedForm.EnableCompositionOnVista
ShapedForm.CreateParams
ShapedForm.FormBorderStyle
ShapedForm.ControlThemeClassName
ShapedForm.BorderPath
ShapedForm.OuterPath
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public class PasteOptionsPopup : MiniToolBarBase, IThemeChangeListener, IPasteOptionsPopup

Constructors

PasteOptionsPopup()

Initializes a new instance of the PasteOptionsPopup class.

Declaration
public PasteOptionsPopup()

Fields

canUnwireEvents

Declaration
protected bool canUnwireEvents
Field Value
System.Boolean

currentCaretPosition

Declaration
protected DocumentPosition currentCaretPosition
Field Value
DocumentPosition

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()

Declaration
protected virtual RadItemCollection GetPasteOptiopnsItems()
Returns
RadItemCollection

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()

Declaration
protected override void HidePopup()
Overrides
MiniToolBarBase.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
IPasteOptionsPopup.Show(RadRichTextBox)

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)

Declaration
protected virtual void UpdatePopupLocation(Point location)
Parameters
Point location

WireEvents()

Declaration
protected virtual void WireEvents()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.