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

Defines the fluent API for configuring ChartCategoryAxisPlotBandLabelBorderSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartPlotBandLabelBorderBuilder

Inheritance: objectChartPlotBandLabelBorderBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public ChartPlotBandLabelBorderBuilder(ChartPlotBandLabelBorder container)
Parameters:containerChartPlotBandLabelBorder

Properties

C#
protected ChartPlotBandLabelBorder Container { get; }

Methods

The color of the border. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartPlotBandLabelBorderBuilder Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartPlotBandLabelBorderBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis.Numeric()
.PlotBands(bands =>
{
bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.Color("red")));
})
)
)

The dash type of the border.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

C#
public ChartPlotBandLabelBorderBuilder DashType(ChartDashType value)
Parameters:valueChartDashType

The value for DashType

Returns:

ChartPlotBandLabelBorderBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis.Numeric()
.PlotBands(bands =>
{
bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.DashType(ChartDashType.Dot)));
})
)
)

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

C#
public ChartPlotBandLabelBorderBuilder Width(double value)
Parameters:valuedouble

The value for Width

Returns:

ChartPlotBandLabelBorderBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis.Numeric()
.PlotBands(bands =>
{
bands.Add().From(10000).To(30000).Label(label => label.Border(border => border.Width(100)));
})
)
)