Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseListBoxControl.ShowFocusRect Property

Gets or sets whether the dotted focus rectangle is displayed around the focused item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
public bool ShowFocusRect { get; set; }

#Property Value

Type Description
Boolean

true if the dotted focus rectangle is displayed around the focused item; otherwise, false.

#Remarks

A focused CheckedListBoxItem can be displayed with or without a dotted focus rectangle. By default, the dotted focus rectangle is displayed around the item when it is focused. Set the ShowFocusRect property to false to display the focused item without the dotted focus rectangle. In the following images, the first item is focused and displayed with and without the dotted focus rectangle respectively.

CheckedListBoxControl_ShowFocusRectangleCheckedListBoxControl_ShowFocusRectangle_False

See Also