LayoutBreakpoints.Add(LayoutBreakpoint) Method
Adds the LayoutBreakpoint object to the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public override void Add(
LayoutBreakpoint layoutBreakpoint
)
#Parameters
Name | Type | Description |
---|---|---|
layout |
Layout |
A Layout |
#Remarks
Creating a LayoutBreakpoint object implicitly declares a control’s width between 0 and the LayoutBreakpoint.MaxWidth property value (if there are no breakpoints with a lower MaxWidth property value) where the Form Layout arranges its items in a specified number of columns (LayoutBreakpoint.ColumnCount). The Form Layout item’s SpanRule object specifies the number of columns (SpanRule.ColumnSpan) and rows (SpanRule.RowSpan) the layout item occupies until the control’s width reaches the LayoutBreakpoint.MaxWidth property of a given LayoutBreakpoint object. The SpanRule.BreakpointName property specifies the span rule’s breakpoint identifier.
#Concept
#Online Demo
Form Layout - Adaptive Grid Layout