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

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:

C#
public class SmartPasteButtonField

Inheritance: objectSmartPasteButtonField

Constructors

C#
public SmartPasteButtonField()

Properties

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

C#
public string[] AllowedValues { get; set; }

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.

C#
public string Description { get; set; }

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

C#
public string Field { get; set; }

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.

C#
[JsonIgnore]
public Type FieldType { get; set; }

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.

C#
public string Type { get; set; }