windowsforms-devexpress-dot-aiintegration-dot-winforms-595a509b.md
Smart Autocomplete behavior settings.
Namespace : DevExpress.AIIntegration.WinForms
Assembly : DevExpress.AIIntegration.WinForms.v25.2.dll
NuGet Package : DevExpress.AIIntegration.WinForms
public class SmartAutoCompleteBehaviorProperties :
BehaviorPropertiesWithEvents
Public Class SmartAutoCompleteBehaviorProperties
Inherits BehaviorPropertiesWithEvents
The following members return SmartAutoCompleteBehaviorProperties objects:
Use the TypingPauseDelay setting to specify a delay, in milliseconds. Once the user stops typing, the extension waits for the specified delay before executing an AI action.
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
}
}
Imports DevExpress.AIIntegration.WinForms
Namespace SmartAutoCompleteDemo
Partial Public Class Form1
Inherits DevExpress.XtraEditors.XtraForm
Public Sub New()
InitializeComponent()
behaviorManager1.Attach(Of SmartAutoCompleteBehavior)(memoEdit1, Sub(behavior)
behavior.Properties.TypingPauseDelay = 200
AddHandler behavior.Properties.Events.OperationFailed, AddressOf Events_OperationFailed
End Sub)
End Sub
Private Sub Events_OperationFailed(sender As Object, e As AIOperationFailedEventArgs)
' Handle the operation failure
End Sub
End Class
End Namespace
Read the following help topic for additional information and examples: Smart Autocomplete.
Object DevExpress.Utils.Base.BaseObject DevExpress.Utils.Base.BaseProperties DevExpress.Utils.Behaviors.BehaviorProperties DevExpress.Utils.Behaviors.BehaviorPropertiesWithEvents SmartAutoCompleteBehaviorProperties
See Also