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

Defines the fluent interface for configuring the GaugeLinearPointerBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GaugeLinearPointerBuilder

Inheritance: objectGaugeLinearPointerBuilder

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

C#
public GaugeLinearPointerBuilder(GaugeLinearPointer pointer)
Parameters:pointerGaugeLinearPointer

The gauge pointer.

Methods

Configures the pointer border

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

The border configuration action

Returns:

GaugeLinearPointerBuilder

Sets the pointer border

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

The pointer border width.

colorstring

The pointer border color.

dashTypeChartDashType

The pointer dash type.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Border(1, "#000", ChartDashType.Dot)
)
.Render();
)

Sets the pointer color.

C#
public GaugeLinearPointerBuilder Color(string color)
Parameters:colorstring

The pointer color.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Color("red")
)
.Render();
)

Sets the pointer margin.

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

The pointer top margin.

rightint

The pointer right margin.

bottomint

The pointer bottom margin.

leftint

The pointer left margin.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Margin(20, 20, 20, 20)
)
.Render();
)

Sets the pointer margin.

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

The pointer margin.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Margin(20)
)
.Render();
)

Sets the pointer opacity.

C#
public GaugeLinearPointerBuilder Opacity(double opacity)
Parameters:opacitydouble

The pointer opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Opacity(0.5)
)
.Render();
)

Sets the pointer shape.

C#
public GaugeLinearPointerBuilder Shape(GaugeLinearPointerShape shape)
Parameters:shapeGaugeLinearPointerShape

The pointer shape.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Shape(LinearGaugePointerShape.Arrow)
)
.Render();
)

Sets the pointer size.

C#
public GaugeLinearPointerBuilder Size(double size)
Parameters:sizedouble

The pointer size.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Size(8)
)
.Render();
)

Configures the pointer track.

C#
public GaugeLinearPointerBuilder Track(Action<GaugeLinearTrackBuilder> configurator)
Parameters:configuratorAction<GaugeLinearTrackBuilder>

The configuration action.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Track(track =&gt; track.Visible(true))
)
.Render();
)

Sets the pointer value.

C#
public GaugeLinearPointerBuilder Value(double value)
Parameters:valuedouble

The pointer value.

Returns:

GaugeLinearPointerBuilder

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("linearGauge")
.Pointer(pointer =&gt; pointer
.Value(25)
)
.Render();
)