SmartPasteBehaviorProperties.ProcessClipboardImage Property
Gets or sets whether to analyze images copied to the clipboard.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v25.1.dll
NuGet Package: DevExpress.AIIntegration.WinForms
Declaration
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ProcessClipboardImage { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default |
|
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
If the ProcessClipboardImage
property is set to DefaultBoolean.True
, SmartPaste checks whether the clipboard contains an image and attempts to extract structured data from it using AI.
using DevExpress.AIIntegration.WinForms;
using DevExpress.XtraBars.Ribbon;
using System.Collections.Generic;
namespace WinFormsSmartPasteImage {
public partial class Form1 : RibbonForm {
public Form1() {
InitializeComponent();
behaviorManager1.Attach<SmartPasteBehavior>(gridView, behavior => {
behavior.Properties.ItemDescriptions.AddRange(new List<AIItemDescription>() {
new AIItemDescription(gridView.Columns["ProductName"], "Official name or product name."),
new AIItemDescription(gridView.Columns["Warranty"], "Information related to the product warranty (in years or months).")
});
behavior.Properties.ProcessClipboardImage = DevExpress.Utils.DefaultBoolean.True;
});
}
}
}
See Also