Skip to main content
All docs
V24.2

SmartSearchBehaviorProperties Class

Contains SmartSearchBehavior settings.

Namespace: DevExpress.AIIntegration.WinForms

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

Declaration

public class SmartSearchBehaviorProperties :
    BehaviorProperties

The following members return SmartSearchBehaviorProperties objects:

Remarks

Once you attach the SmartSearchBehavior to a control, you should describe items so that Smart Search can find appropriate items. In the context of Smart Search, an item refers to a BarItem when working with a RibbonControl, or an AccordionControlElement when working with an AccordionControl.

Settings include:

  • ItemDescriptions – Gets a collection of item descriptions (AIItemDescription).
  • ExcludedItems – Gets a collection of items excluded from Smart Search.
using DevExpress.AIIntegration.WinForms;
using DevExpress.XtraBars.Ribbon;

public Form1() {
    InitializeComponent();
    // Displays a search box in the Ribbon control's caption.
    ribbon.OptionsSearchMenu.SearchItemPosition = SearchItemPosition.Caption;

    behaviorManager1.Attach<SmartSearchBehavior>(ribbon, behavior => {
        behavior.Properties.ItemDescriptions.AddRange(new AIItemDescription[]{
            new AIItemDescription(itemEnableSystemProtection, "Activates software protection against unauthorized access."),
            new AIItemDescription(itemLogin, "Displays a sign-in or login form."),
            new AIItemDescription(itemSettings, "Displays settings and options related to security and protection."),
            new AIItemDescription(itemRBAC, "Manages user access permissions and role-based access control (RBAC)."),
            new AIItemDescription(itemBackup, "Backs up (creates a copy of) sensitive data (information)."),
            new AIItemDescription(itemRestore, "Restores data from a backup database."),
        });
    });
}

Tip

Read the following help topic for additional information: AI-powered Smart Search.

Inheritance

Object
DevExpress.Utils.Base.BaseObject
DevExpress.Utils.Base.BaseProperties
DevExpress.Utils.Behaviors.BehaviorProperties
SmartSearchBehaviorProperties
See Also