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

Defines the fluent API for configuring ChartLegendFocusHighlightBorderSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartLegendFocusHighlightBorderSettingsBuilder

Inheritance: objectChartLegendFocusHighlightBorderSettingsBuilder

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

Constructors

C#
public ChartLegendFocusHighlightBorderSettingsBuilder(ChartLegendFocusHighlightBorderSettings container)
Parameters:containerChartLegendFocusHighlightBorderSettings

Properties

C#
protected ChartLegendFocusHighlightBorderSettings Container { get; }

Methods

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

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

The value for Color

Returns:

ChartLegendFocusHighlightBorderSettingsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
.FocusHighlight(f=>f.Border(b=>b
.Color("brown")
))
)
)

The dash type of the focus highlight 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 ChartLegendFocusHighlightBorderSettingsBuilder DashType(ChartDashType value)
Parameters:valueChartDashType

The value for DashType

Returns:

ChartLegendFocusHighlightBorderSettingsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
.FocusHighlight(f=>f.Border(b=>b
.DashType(ChartDashType.Solid)
))
)
)

The opacity of the focus highlight border.

C#
public ChartLegendFocusHighlightBorderSettingsBuilder Opacity(double value)
Parameters:valuedouble

The value for Opacity

Returns:

ChartLegendFocusHighlightBorderSettingsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
.FocusHighlight(f=>f.Border(b=>b
.Opacity(0.7)
))
)
)

The width of the focus highlight border in pixels.

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

The value for Width

Returns:

ChartLegendFocusHighlightBorderSettingsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
.FocusHighlight(f=>f.Border(b=>b
.Width(3)
))
)
)