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

Defines the fluent API for configuring LinearGaugePointer

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class LinearGaugePointerBuilder

Inheritance: objectLinearGaugePointerBuilder

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

Constructors

LinearGaugePointerBuilder method.

C#
public LinearGaugePointerBuilder(LinearGaugePointer container)
Parameters:containerLinearGaugePointer

Properties

Gets the settings being configured.

C#
protected LinearGaugePointer Container { get; }

Methods

The border of the pointer.

C#
public LinearGaugePointerBuilder Border(Action<LinearGaugePointerBorderSettingsBuilder> configurator)
Parameters:configuratorAction<LinearGaugePointerBorderSettingsBuilder>

The configurator for the border setting.

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Border(b =&gt; b.Color("green"));
})
)

Sets the pointer border

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

The pointer border width.

colorstring

The pointer border color.

dashTypeChartDashType

The pointer dash type.

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

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

The color of the pointer.

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

The value for Color

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Color("green");
})
)

Sets the pointer margin.

C#
public LinearGaugePointerBuilder Margin(double top, double right, double bottom, double left)
Parameters:topdouble

The pointer top margin.

rightdouble

The pointer right margin.

bottomdouble

The pointer bottom margin.

leftdouble

The pointer left margin.

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

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

The margin of the pointer.

C#
public LinearGaugePointerBuilder Margin(double value)
Parameters:valuedouble

The value for Margin

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Margin(20);
})
)

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

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

The value for Opacity

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Opacity(20);
})
)

The shape of the pointer.

C#
public LinearGaugePointerBuilder Shape(GaugeLinearPointerShape value)
Parameters:valueGaugeLinearPointerShape

The value for Shape

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Shape(GaugeLinearPointerShape.Arrow);
})
)

The size of the pointer.

C#
public LinearGaugePointerBuilder Size(double value)
Parameters:valuedouble

The value for Size

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Size(20);
})
)

The element arround/under the pointer. (available only for 'barIndicator' shape)

C#
public LinearGaugePointerBuilder Track(Action<LinearGaugePointerTrackSettingsBuilder> configurator)
Parameters:configuratorAction<LinearGaugePointerTrackSettingsBuilder>

The configurator for the track setting.

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10).Track(t =&gt; t.Opacity(20).Border(b =&gt; b.Color("green")));
})
)

The value of the gauge.

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

The value for Value

Returns:

LinearGaugePointerBuilder

Returns the current LinearGaugePointerBuilder instance.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("gauge")
.Pointers(pointer =&gt;
{
pointer.Add().Value(10);
})
)