Back to Devexpress

RibbonControl.SearchItemPosition Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-940fdfc6.md

latest2.5 KB
Original Source

RibbonControl.SearchItemPosition Property

Gets or sets the position of the Search box.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public SearchItemPosition SearchItemPosition { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Property SearchItemPosition As SearchItemPosition

Property Value

TypeDescription
DevExpress.XtraBars.Ribbon.SearchItemPosition

The position of the Search box.

|

Remarks

Note

Use the RibbonOptionsSearchMenu.SearchItemPosition property instead.

A Ribbon Form with the RibbonStyle property set to RibbonControlStyle.Office365 displays the Search box at the top of the form (see the screenshot below). In other Ribbon styles, the Search box is displayed in a page header or is hidden.

Use the SearchItemPosition property to display the Search box at the top of the Ribbon form, or in a page header, or to hide it from the Ribbon UI.

Handle the CustomSearchItemPosition event to align the Search box within the caption of the Ribbon form.

Note

Skinnable forms (XtraForm) cannot display the Search box at the top of the form. Setting the RibbonControl.SearchItemPosition to SearchItemPosition.Caption hides the search box.

See Also

CustomSearchItemPosition

RibbonStyle

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace