Class
SmartPasteButtonField

Describes a single field that can receive a value during AI-powered smart paste. Instances are returned by GetFields() and provide the metadata the AI service needs to extract, validate, and deserialize clipboard content into the correct field.

Definition

Namespace:Telerik.Maui.Controls.SmartPasteButton

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class SmartPasteButtonField

Inheritance: objectSmartPasteButtonField

Constructors

SmartPasteButtonField()

Declaration

cs-api-definition
public SmartPasteButtonField()

Properties

AllowedValues

Gets or sets the collection of valid values the field can accept. When set, the AI service is constrained to return only one of these values (e.g. ["Active", "Inactive"] for a status enum).

Declaration

cs-api-definition
public string[] AllowedValues { get; set; }

Property Value

string[]

Description

Gets or sets a human-readable label that describes the field (e.g. "First Name", "Email Address"). The AI service uses this description as context when matching clipboard content to the appropriate field.

Declaration

cs-api-definition
public string Description { get; set; }

Property Value

string

Field

Gets or sets the unique identifier of the field, typically the property name in the underlying data model (e.g. "FirstName", "Email"). This value is used to map extracted results back to the originating field via SetFieldValue(string, object).

Declaration

cs-api-definition
public string Field { get; set; }

Property Value

string

FieldType

Gets or sets the CLR Type of the field. When set, this takes precedence over the string-based Type property for deserializing the AI response into the correct .NET type.

Declaration

cs-api-definition
[JsonIgnore]
public Type FieldType { get; set; }

Property Value

Type

Type

Gets or sets the full CLR type name of the field (e.g. "System.String", "System.DateTime", "System.Double"). This is used to deserialize the AI response into the correct .NET type before the value is assigned to the field.

Declaration

cs-api-definition
public string Type { get; set; }

Property Value

string