Back to Devexpress

BaseListBoxControl.ShowFocusRect Property

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-9e7f0403.md

latest1.9 KB
Original Source

BaseListBoxControl.ShowFocusRect Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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.

See Also

BaseListBoxControl Class

BaseListBoxControl Members

DevExpress.XtraEditors Namespace