Skip to main content
All docs
V24.2

SmartAutoCompleteBehavior(Type, Int32, String) Constructor

Initializes a new instance of the SmartAutoCompleteBehavior class with specified settings.

Namespace: DevExpress.AIIntegration.WinForms

Assembly: DevExpress.AIIntegration.WinForms.v24.2.dll

NuGet Package: DevExpress.AIIntegration.WinForms

Declaration

public SmartAutoCompleteBehavior(
    Type behaviorSourceType,
    int typingPauseDelay = 500,
    string UserRole = ""
)

Parameters

Name Type Description
behaviorSourceType Type

The Type of the control to which the Behavior is attached.

Optional Parameters

Name Type Default Description
typingPauseDelay Int32 500

The delay, in milliseconds. This value is assigned to the TypingPauseDelay property.

UserRole String String.Empty

The user role. This value is assigned to the UserRole property.

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

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

See Also