windowsforms-devexpress-dot-aiintegration-dot-winforms-dot-smartpastebehaviorproperties-28a39fea.md
Gets or sets whether to analyze images copied to the clipboard.
Namespace : DevExpress.AIIntegration.WinForms
Assembly : DevExpress.AIIntegration.WinForms.v25.2.dll
NuGet Package : DevExpress.AIIntegration.WinForms
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ProcessClipboardImage { get; set; }
<DefaultValue(DefaultBoolean.Default)>
Public Property ProcessClipboardImage As DefaultBoolean
| Type | Default | Description |
|---|---|---|
| DefaultBoolean | Default |
True to analyze images copied to the clipboard; otherwise, False.
|
Available values:
| Name | Description | Return Value |
|---|---|---|
| True |
The value is true.
|
0
| | False |
The value is false.
|
1
| | Default |
The value is specified by a global option or a higher-level object.
|
2
|
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
SmartPasteBehaviorProperties Class