Skip to main content

BaseRepositoryItemCheckEdit.FullFocusRect Property

Gets or sets a value indicating whether a focus rectangle is drawn round the entire client region or around the caption text only.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Appearance")]
public bool FullFocusRect { get; set; }

Property Value

Type Default Description
Boolean false

true if a focus rectangle is around the entire client region; otherwise, false.

Remarks

A check editor enables you to receive focus if the RepositoryItem.AllowFocused property is set to true. If it is focused, a focus rectangle is drawn within it. Use the FullFocusRect property to control the manner in which this is drawn.

If this property is set to true, the focus rectangle is drawn around an area that includes the check box and the entire caption region (i.e., close to the editor’s client region border).

If the FullFocusRect property value is false, the focus rectangle is drawn around the caption text specified via the BaseRepositoryItemCheckEdit.Caption property. In this case, if the Caption property contains an empty string or is set to null (Nothing in Visual Basic), a narrow focus rectangle is still displayed at the caption label’s location.

Note: in both cases, the height of the focus rectangle is constant - only its width and position vary.

Assigning a new value for the FullFocusRect property raises the RepositoryItem.PropertiesChanged event.

See Also