New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines the contract for a container (such as a form or data grid) that participates in AI-powered smart paste operations initiated by RadSmartPasteButton. Implementors supply metadata about their editable fields and accept values extracted from clipboard content.

Definition

Namespace:Telerik.Maui.Controls.SmartPasteButton

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public interface ISmartPasteButtonProvider

Derived Classes: RadDataForm

Methods

Returns the collection of SmartPasteButtonField instances that describe the editable fields available for smart paste. Each field carries the metadata the AI service needs to extract and deserialize the correct value from the clipboard.

C#
IEnumerable<SmartPasteButtonField> GetFields()
Returns:

IEnumerable<SmartPasteButtonField>

An enumerable of SmartPasteButtonField objects representing the provider's fields.

Assigns an extracted value to the field identified by field. Called by RadSmartPasteButton after the AI service has processed the clipboard content and produced a typed result for each field.

C#
void SetFieldValue(string field, object value)
Parameters:fieldstring

The unique field identifier that matches Field.

valueobject

The deserialized value to assign to the field.