StackLayoutBuilder
Defines the fluent API for configuring the Kendo UI StackLayout
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class StackLayoutBuilder : WidgetBuilderBase<StackLayout, StackLayoutBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<StackLayout, StackLayoutBuilder>StackLayoutBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the StackLayoutBuilder class.
public StackLayoutBuilder(StackLayout component)
The StackLayout component.
Methods
Sets the height of the StackLayout.
public StackLayoutBuilder Height(string value)
The height value. Can be specified in pixels (e.g. "400px"), percentages, or other CSS units.
Returns:Returns the current StackLayoutBuilder instance.
Sets the horizontal alignment of items within the StackLayout.
public StackLayoutBuilder HorizontalAlign(HorizontalAlign value)
The horizontal alignment value (Start, Center, End, Stretch).
Returns:Returns the current StackLayoutBuilder instance.
Defines the items of the StackLayout
public StackLayoutBuilder Items(Action<StackLayoutContainerFactory> configurator)
The configurator for the container setting.
Returns:Returns the current StackLayoutBuilder instance.
Sets the orientation of the StackLayout.
public StackLayoutBuilder Orientation(StackLayoutOrientation value)
The orientation value. Can be either horizontal or vertical.
Returns:Returns the current StackLayoutBuilder instance.
Sets the spacing between items in the StackLayout.
public StackLayoutBuilder Spacing(string value)
The spacing value. Can be specified in pixels (e.g. "10px") or other CSS units.
Returns:Returns the current StackLayoutBuilder instance.
Sets the vertical alignment of items within the StackLayout.
public StackLayoutBuilder VerticalAlign(VerticalAlign value)
The vertical alignment value (Start, Center, End, Stretch).
Returns:Returns the current StackLayoutBuilder instance.
Sets the width of the StackLayout.
public StackLayoutBuilder Width(string value)
The width value. Can be specified in pixels (e.g. "400px"), percentages, or other CSS units.
Returns:Returns the current StackLayoutBuilder instance.