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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnitType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also