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

Defines the fluent interface for configuring the GaugeRadialCapBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GaugeRadialCapBuilder

Inheritance: objectGaugeRadialCapBuilder

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

C#
public GaugeRadialCapBuilder(GaugeRadialCap cap)
Parameters:capGaugeRadialCap

The gauge cap.

Methods

Sets the cap color.

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

The cap color.

Returns:

GaugeRadialCapBuilder

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

Sets the cap opacity.

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

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

Returns:

GaugeRadialCapBuilder

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

Sets the cap size in percents.

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

The cap size in percents.

Returns:

GaugeRadialCapBuilder

Example:
C#
@( Html.Kendo().RadialGauge()
.Name("radialGauge")
.Pointer(pointer => pointer
.Cap(cap => cap.Size(8))
)
.Render();
)