Skip to main content

BaseListBoxControl.ShowFocusRect Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.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