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.v20.1.dll

Declaration

[DefaultValue(LengthUnitType.Star)]
[XtraSerializableProperty]
public LengthUnitType UnitType { get; set; }
<DefaultValue(LengthUnitType.Star)>
<XtraSerializableProperty>
Public Property UnitType As LengthUnitType

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.

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