SmartAutoCompleteBehaviorProperties.Events Property
Allows you to subscribe to behavior events.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v25.1.dll
NuGet Package: DevExpress.AIIntegration.WinForms
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public AIEvents Events { get; set; }
Property Value
Type | Description |
---|---|
DevExpress.AIIntegration.WinForms.AIEvents | AI-related events. |
Remarks
using DevExpress.AIIntegration.WinForms;
namespace SmartAutoCompleteDemo {
public partial class Form1 : DevExpress.XtraEditors.XtraForm {
public Form1() {
InitializeComponent();
behaviorManager1.Attach<SmartAutoCompleteBehavior>(memoEdit1, behavior => {
behavior.Properties.TypingPauseDelay = 200;
behavior.Properties.Events.OperationFailed += Events_OperationFailed;
});
}
}
void Events_OperationFailed(object sender, AIOperationFailedEventArgs e) {
// Handle the operation failure
}
}
See Also