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

Defines the fluent interface for configuring the GaugeRadialPointerBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GaugeRadialPointerBuilder

Inheritance: objectGaugeRadialPointerBuilder

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

C#
public GaugeRadialPointerBuilder(GaugeRadialPointer pointer)
Parameters:pointerGaugeRadialPointer

The gauge pointer.

Methods

Configures the pointer cap.

C#
public GaugeRadialPointerBuilder Cap(Action<GaugeRadialCapBuilder> configurator)
Parameters:configuratorAction<GaugeRadialCapBuilder>

The configuration action.

Returns:

GaugeRadialPointerBuilder

Example:
C#
@( Html.Kendo().RadialGauge()
.Name("radialGauge")
.Pointer(pointer =&gt; pointer
.Cap(cap =&gt; cap.Color("red"))
)
.Render();
)

Sets the pointer color.

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

The pointer color.

Returns:

GaugeRadialPointerBuilder

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

Sets the pointer length.

C#
public GaugeRadialPointerBuilder Length(double length)
Parameters:lengthdouble

The pointer length (in percent) that is based on the distance to the scale. The default length of 1 indicates that the pointer exactly reaches the scale. Accepts values between 0.1 and 1.5.

Returns:

GaugeRadialPointerBuilder

Example:
C#
@( Html.Kendo().RadialGauge()
.Name("radialGauge")
.Pointer(pointer =&gt; pointer
.Length(0.5)
)
.Render();
)

Sets the pointer opacity.

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

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

Returns:

GaugeRadialPointerBuilder

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

Sets the pointer value.

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

The pointer value.

Returns:

GaugeRadialPointerBuilder

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