BaseListBoxControl.ShowFocusRect Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool ShowFocusRect { get; set; }
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property ShowFocusRect As Boolean

Property Value

Type Default Description
Boolean

true

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