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

Defines the fluent API for configuring RadialGaugePointer

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class RadialGaugePointerBuilder

Inheritance: objectRadialGaugePointerBuilder

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

Constructors

RadialGaugePointerBuilder method.

C#
public RadialGaugePointerBuilder(RadialGaugePointer container)
Parameters:containerRadialGaugePointer

Properties

Gets the settings being configured.

C#
protected RadialGaugePointer Container { get; }

Methods

The cap configuration options.

C#
public RadialGaugePointerBuilder Cap(Action<RadialGaugePointerCapSettingsBuilder> configurator)
Parameters:configuratorAction<RadialGaugePointerCapSettingsBuilder>

The configurator for the cap setting.

Returns:

RadialGaugePointerBuilder

Returns the current instance of RadialGaugePointerBuilder.

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

The color of the pointer. Any valid CSS color string will work here, including hex and rgb.

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

The value for Color

Returns:

RadialGaugePointerBuilder

Returns the current instance of RadialGaugePointerBuilder.

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

Sets the pointer length.

C#
public RadialGaugePointerBuilder 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:

RadialGaugePointerBuilder

Returns the current instance of RadialGaugePointerBuilder.

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

Sets the pointer opacity.

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

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

Returns:

RadialGaugePointerBuilder

Returns the current instance of RadialGaugePointerBuilder.

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

The value of the gauge.

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

The value for Value

Returns:

RadialGaugePointerBuilder

Returns the current instance of RadialGaugePointerBuilder.

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