Skip to main content

Document.FreeLayoutWidth Property

Provides access to a Length structure that specifies the width of this widget in Free Layout Mode.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public Length FreeLayoutWidth { get; }

Property Value

Type Description
Length

A Length structure that specifies the width of this widget in Free Layout Mode.

Remarks

In Free Layout Mode, documents are sized according to the FreeLayoutWidth and Document.FreeLayoutHeight properties. Both properties provide access to Length structures that store two values.

  • UnitType - a type of measure units. You can choose between Star (relative values) and Pixel (absolute values).
  • UnitValue - a size value. Depending on the UnitType value, this number is interpreted as either an absolute value in pixels, or as a relative value compared to other star-typed Length objects.

Using these properties, you can resize widgets, but only one property will work at a time. For instance, if one widget is docked to another widget’s side so that both documents are arranged horizontally, only the FreeLayoutWidth property will be in effect. The FreeLayoutHeight property of both containers will be ignored since document height is managed by the docking container that hosts these documents.

See the Free Layout Mode article to learn more.

See Also