New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI StackLayout

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class StackLayoutBuilder : WidgetBuilderBase<StackLayout, StackLayoutBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<StackLayout, StackLayoutBuilder>StackLayoutBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ToComponent()WidgetBuilderBase<StackLayout, StackLayoutBuilder>.Expression(string)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.Name(string)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.Deferred(bool)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.HtmlAttributes(object)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.Render()WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ToHtmlString()WidgetBuilderBase<StackLayout, StackLayoutBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ToClientTemplate()WidgetBuilderBase<StackLayout, StackLayoutBuilder>.AsModule(bool)WidgetBuilderBase<StackLayout, StackLayoutBuilder>.ComponentWidgetBuilderBase<StackLayout, StackLayoutBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the StackLayoutBuilder class.

C#
public StackLayoutBuilder(StackLayout component)
Parameters:componentStackLayout

The StackLayout component.

Methods

Sets the height of the StackLayout.

C#
public StackLayoutBuilder Height(string value)
Parameters:valuestring

The height value. Can be specified in pixels (e.g. "400px"), percentages, or other CSS units.

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Sets the horizontal alignment of items within the StackLayout.

C#
public StackLayoutBuilder HorizontalAlign(HorizontalAlign value)
Parameters:valueHorizontalAlign

The horizontal alignment value (Start, Center, End, Stretch).

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Defines the items of the StackLayout

C#
public StackLayoutBuilder Items(Action<StackLayoutContainerFactory> configurator)
Parameters:configuratorAction<StackLayoutContainerFactory>

The configurator for the container setting.

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Sets the orientation of the StackLayout.

C#
public StackLayoutBuilder Orientation(StackLayoutOrientation value)
Parameters:valueStackLayoutOrientation

The orientation value. Can be either horizontal or vertical.

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Sets the spacing between items in the StackLayout.

C#
public StackLayoutBuilder Spacing(string value)
Parameters:valuestring

The spacing value. Can be specified in pixels (e.g. "10px") or other CSS units.

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Sets the vertical alignment of items within the StackLayout.

C#
public StackLayoutBuilder VerticalAlign(VerticalAlign value)
Parameters:valueVerticalAlign

The vertical alignment value (Start, Center, End, Stretch).

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.

Sets the width of the StackLayout.

C#
public StackLayoutBuilder Width(string value)
Parameters:valuestring

The width value. Can be specified in pixels (e.g. "400px"), percentages, or other CSS units.

Returns:

StackLayoutBuilder

Returns the current StackLayoutBuilder instance.