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.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(LengthUnitType.Star)]
[XtraSerializableProperty]
public LengthUnitType UnitType { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Length |
Star | A Length |
Available values:
Name | Description |
---|---|
Pixel | The Length. |
Star | The Length. |
#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.
#Related GitHub Examples
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.