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

Defines the fluent interface for configuring Pane.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartPaneBuilder

Inheritance: objectChartPaneBuilder

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 ChartPaneBuilder class.

C#
public ChartPaneBuilder(ChartPane pane)
Parameters:paneChartPane

The phart pane.

Properties

Gets or sets the Pane.

C#
public ChartPane Pane { get; }
Property Value:

The Pane.

Methods

Sets the pane background color

C#
public ChartPaneBuilder Background(string background)
Parameters:backgroundstring

The background color.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes => {
panes.Add().Background("#000011");
})
)

Configures the pane border

C#
public ChartPaneBuilder Border(Action<ChartBorderBuilder> configurator)
Parameters:configuratorAction<ChartBorderBuilder>

The border configuration action

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Border(border =&gt; border.Width(2));
})
)

Sets the pane border

C#
public ChartPaneBuilder Border(int width, string color, ChartDashType dashType)
Parameters:widthint

The pane border width.

colorstring

The pane border color.

dashTypeChartDashType

The pane dash type.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Border(1, "pink", ChartDashType.Dot);
})
)

Sets the pane clip option

C#
public ChartPaneBuilder Clip(bool clip)
Parameters:clipbool

The pane clip option value.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Clip(false);
})
)

Sets the height of the pane.

C#
public ChartPaneBuilder Height(int height)
Parameters:heightint

The pane height.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Height(400);
})
)

Sets the pane margin

C#
public ChartPaneBuilder Margin(int top, int right, int bottom, int left)
Parameters:topint

The pane top margin.

rightint

The pane right margin.

bottomint

The pane bottom margin.

leftint

The pane left margin.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Margin(10, 15, 15, 10);
})
)

Sets the pane margin

C#
public ChartPaneBuilder Margin(int margin)
Parameters:marginint

The pane margin.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Margin(10);
})
)

Sets the pane padding

C#
public ChartPaneBuilder Padding(int top, int right, int bottom, int left)
Parameters:topint

The pane top padding.

rightint

The pane right padding.

bottomint

The pane bottom padding.

leftint

The pane left padding.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Padding(10, 15, 15, 10);
})
)

Sets the pane padding

C#
public ChartPaneBuilder Padding(int padding)
Parameters:paddingint

The pane padding.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Padding(10);
})
)

Defines the title of the pane.

C#
public ChartPaneBuilder Title(Action<ChartTitleBuilder> configurator)
Parameters:configuratorAction<ChartTitleBuilder>

The configuration action.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Title(title =&gt; title.Color("#336699"));
})
)

Sets the title of the pane.

C#
public ChartPaneBuilder Title(string title)
Parameters:titlestring

The pane title.

Returns:

ChartPaneBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(panes =&gt; {
panes.Add().Title("Pane 1");
})
)