Skip to main content

Length.UnitType Property

Gets or sets the way a StackGroup‘s, RowDefinition‘s or ColumnDefinition‘s length is measured.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v23.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(LengthUnitType.Star)]
[XtraSerializableProperty]
public LengthUnitType UnitType { get; set; }

Property Value

Type Default Description
LengthUnitType Star

A LengthUnitType enumerator value that specifies the way a StackGroup‘s, RowDefinition‘s or ColumnDefinition‘s length is measured.

Available values:

Name Description
Pixel

The Length.UnitValue property value is the number of pixels that a StackGroup occupies.

Star

The Length.UnitValue property value is the relative length multiplier.

Remarks

The UnitType property can equal either LengthUnitType.Pixel or LengthUnitType.Star. Pixel-measured Stack Groups/Rows/Columns are given the precise length specified via the Length.UnitValue property. Star-measured Groups/Rows/Columns are resized dynamically, depending on the available free space. In this case, the UnitValue property value is a relative length multiplier, specifying how much this Group is wider or narrower than other star-measured Groups. See the Widget View topic for the details.

See Also