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

Defines the fluent API for configuring the Kendo UI StackLayoutContainer

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class StackLayoutContainerBuilder

Inheritance: objectStackLayoutContainerBuilder

Inherited Members object.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 StackLayoutContainerBuilder class.

C#
public StackLayoutContainerBuilder(StackLayoutContainer container)
Parameters:containerStackLayoutContainer

The StackLayoutContainer instance to configure.

Properties

Gets the StackLayoutContainer instance being configured.

C#
protected StackLayoutContainer Container { get; }

Methods

Sets the content of the container using an Action.

C#
public StackLayoutContainerBuilder Content(Action content)
Parameters:contentAction

The Action that will be executed when rendering the container.

Returns:

StackLayoutContainerBuilder

Returns the current StackLayoutContainerBuilder instance.

This overload is typically used with Razor syntax to define inline template content.

Sets the content of the container using a template function.

C#
public StackLayoutContainerBuilder Content(Func<object, object> content)
Parameters:contentFunc<object, object>

The template function that will be executed to generate the container content.

Returns:

StackLayoutContainerBuilder

Returns the current StackLayoutContainerBuilder instance.

This overload accepts a function that takes a model object and returns the generated content.

Sets the HTML content of the container.

C#
public StackLayoutContainerBuilder Content(string content)
Parameters:contentstring

The HTML string to use as the container's content.

Returns:

StackLayoutContainerBuilder

Returns the current StackLayoutContainerBuilder instance.

This overload accepts a string that will be directly rendered as HTML content.