Skip to main content
All docs
V25.1
  • SmartAutoCompleteBehaviorProperties.TypingPauseDelay Property

    Gets or sets a delay before executing an AI action after the user stops typing.

    Namespace: DevExpress.AIIntegration.WinForms

    Assembly: DevExpress.AIIntegration.WinForms.v25.1.dll

    NuGet Package: DevExpress.AIIntegration.WinForms

    Declaration

    [DefaultValue(500)]
    public int TypingPauseDelay { get; set; }

    Property Value

    Type Default Description
    Int32 500

    The delay, in milliseconds.

    Remarks

    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
        }
    }
    

    Read the following help topic for additional information and examples: Smart Autocomplete.

    See Also