RadSmartPasteButton
Represents a button that performs AI-powered smart paste. When clicked, the button reads the clipboard content, gathers field metadata from the assigned Provider, raises the SmartPasteRequest event so the application can send the data to an AI service, and then distributes the extracted values back to the provider's fields. The button supports a processing visual state with built-in cancellation.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[DefaultBindingProperty("Text")]
public class RadSmartPasteButton : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadSmartPasteButton...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSmartPasteButton class.
public RadSmartPasteButton()
Properties
Gets or sets the color used to render the button icon.
[Browsable(true)]
public Color IconForeColor { get; set; }
Gets or sets the bitmap icon rendered in the button.
[Browsable(true)]
public Image IconImage { get; set; }
Gets or sets the size of the button SVG icon, in pixels.
[Browsable(true)]
public int IconSize { get; set; }
Gets or sets the SVG icon rendered in the button.
[Browsable(true)]
public RadSvgImage IconSvgImage { get; set; }
Gets a value indicating whether the button is in processing state.
[Browsable(false)]
public bool IsProcessing { get; }
Gets or sets the smart paste provider that supplies fields and handles value assignment.
[Browsable(true)]
public ISmartPasteButtonProvider Provider { get; set; }
Gets the main smart paste button element.
[Browsable(false)]
public RadSmartPasteButtonElement SmartPasteButtonElement { get; }
Gets or sets the text displayed in the button.
[Browsable(true)]
public override string Text { get; set; }
Overrides:
Gets the theme class name for this control.
public override string ThemeClassName { get; }
Overrides:
Methods
Creates the child items for this control, adding the main element to the element tree.
protected override void CreateChildItems(RadElement parent)
The parent element.
Overrides:
Creates the main smart paste button element. Override to provide a custom element.
protected virtual RadSmartPasteButtonElement CreateSmartPasteButtonElement()
A new instance of RadSmartPasteButtonElement.
Disposes resources used by this control.
protected override void Dispose(bool disposing)
True if managed resources should be disposed.
Overrides:
Events
Occurs when a smart paste operation is requested. Subscribe to this event to initiate the smart paste logic.
public event EventHandler<SmartPasteButtonRequestEventArgs> SmartPasteRequest