SmartPasteBehavior.SmartPasteAsync() Method
Assigns the right values (from the clipboard) to the appropriate items.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v24.2.dll
Declaration
Returns
Type | Description |
---|---|
Task | The task. |
Remarks
The following code snippet handles the GridView’s KeyDown
event to invoke SmartPaste when a user presses Alt+P:
async void GridView1_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.P && e.Modifiers == Keys.Alt)
await behaviorManager1.GetBehavior<SmartPasteBehavior>(gridView1).SmartPasteAsync();
}
Read the following help topic for additional information: Smart Paste AI-powered Extension.
See Also