Back to Devexpress

SmartPasteBehavior.ProcessClipboardImage Property

wpf-devexpress-dot-aiintegration-dot-wpf-dot-smartpastebehavior-9fed4b60.md

latest2.9 KB
Original Source

SmartPasteBehavior.ProcessClipboardImage Property

Gets or sets whether to analyze images copied to the clipboard.

Namespace : DevExpress.AIIntegration.Wpf

Assembly : DevExpress.AIIntegration.Wpf.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Wpf

Declaration

csharp
public DefaultBoolean ProcessClipboardImage { get; set; }
vb
Public Property ProcessClipboardImage As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

True to analyze images copied to the clipboard; otherwise, False.

|

Available values:

NameDescriptionReturn 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

|

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.

xaml
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" 
xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"

<dxg:GridControl x:Name="gridControl" ItemsSource="{Binding Items}">
    <dxg:GridControl.View>
        <dxg:TableView PasteMode="Update"/>
    </dxg:GridControl.View>
    <dxmvvm:Interaction.Behaviors>
        <dxai:SmartPasteBehavior
                x:Name="smartPasteBehavior"
                ProcessClipboardImage="True"/>
    </dxmvvm:Interaction.Behaviors>
    <dxg:GridColumn FieldName="OrderID"
                dxai:SmartPasteBehavior.ExcludeItem="True"/>
    <dxg:GridColumn FieldName="OrderDate"
                dxai:SmartPasteBehavior.ItemDescription="The date when an order was placed."/>
    <dxg:GridColumn FieldName="ShippingDate"
                dxai:SmartPasteBehavior.ItemDescription="The date when an order is scheduled to be shipped."/>
    <dxg:GridColumn FieldName="Shipped"
                dxai:SmartPasteBehavior.ItemDescription="Indicates whether an order has been shipped. If 1 use True. If -1 use False."/>
</dxg:GridControl>

See Also

SmartPasteBehavior Class

SmartPasteBehavior Members

DevExpress.AIIntegration.Wpf Namespace