Skip to main content
Tab

SplitterPane.Size Property

Gets or sets the pane’s size (height or width, depending on the orientation).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(Unit), "")]
public Unit Size { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit object that is the pane’s size.

Remarks

The Size property specifies the height for panes which are stacked vertically within their container (a parent pane of a splitter control), and the width - for horizontally stacked panes. The stack orientation depends on the ASPxSplitter.Orientation property value.

Depending upon the measurement unit (pixels or percents) used to set the Size property of a pane, you can control how the pane will affect the splitter control’s layout, and its behavior in different collapse/expansion scenarios.

The Size property can be defined in any HTML-compatible size unit with the exception of the UnitType.Em and UnitType.Ex types. These two unit types are not supported, because they depend upon the element font, and can’t be processed correctly.

Note, that you cannot use this property to specify the pane’s size value if it is less than the ASPxSplitter.PaneMinSize property’s value or the SplitterPane.MinSize property’s value (if it is specified for the current pane).

Note

This property is not in effect if the SplitterPane.AutoHeight or SplitterPane.AutoWidth property is set to true.

See Also