Skip to main content

OptionsView.AllowLockSizeIndicators Property

Gets or sets whether or not lock size indicators should be displayed during the runtime customization.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v22.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean AllowLockSizeIndicators { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumerator value that specifies whether or not lock size indicators should be displayed during the runtime customization.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowLockSizeIndicators
DataLayoutControl
.OptionsView.AllowLockSizeIndicators
LayoutControl
.OptionsView.AllowLockSizeIndicators

Remarks

By default, when end-users try to resize layout items, the adorner layer (see the OptionsView.DrawAdornerLayer property) highlights those with locked sizes. In the following figure, locked items are highlighted in light purple.

Layout - Adorner Lock Size Highlight

If you set the AllowLockSizeIndicators property to DefaultBoolean.True, along with this color indication, locked items will additionally display lock indicators (see the figure below). These elements allow your end-users to instantly recognize whether an item width, height or both width and height are locked.

Layout - Adorner Lock Size Highlight With Indicators

See Also