RadzenLinearGaugeScale Class

RadzenLinearGaugeScale component.

Inheritance

Object

ComponentBase

RadzenLinearGaugeScale

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenLinearGaugeScale : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenLinearGaugeScalelink

RadzenLinearGaugeScale component.

Declaration
public RadzenLinearGaugeScale()

Properties

ChildContentlink

Gets or sets the child content containing pointers and ranges.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content containing pointers and ranges.

Clicklink

Gets or sets a callback invoked when the user clicks on the scale area. The argument is the computed scale value at the clicked position.

Declaration
public EventCallback<double> Click { get; set; }
Property Value
Type Description
EventCallback<double>Gets or sets a callback invoked when the user clicks on the scale area. The argument is the computed scale value at the clicked position.

CurrentEndlink

Gets the end point of the rendered scale line (accounts for Reversed and RTL).

Declaration
public Point CurrentEnd { get; }
Property Value
Type Description
PointGets the end point of the rendered scale line (accounts for Reversed and RTL).

CurrentStartlink

Gets the start point of the rendered scale line (accounts for Reversed and RTL).

Declaration
public Point CurrentStart { get; }
Property Value
Type Description
PointGets the start point of the rendered scale line (accounts for Reversed and RTL).

FormatStringlink

Gets or sets the format string used for tick labels.

Declaration
public string FormatString { get; set; }
Property Value
Type Description
stringGets or sets the format string used for tick labels.

Formatterlink

Gets or sets the formatter used for tick labels.

Declaration
public Func<double, string> Formatter { get; set; }
Property Value
Type Description
Func<double, string>Gets or sets the formatter used for tick labels.

Gaugelink

Gets or sets the parent linear gauge.

Declaration
public RadzenLinearGauge Gauge { get; set; }
Property Value
Type Description
RadzenLinearGaugeGets or sets the parent linear gauge.

LinePositionlink

Gets or sets the position of the scale line along the cross axis as a fraction of the gauge dimension (0.0–1.0). When null (default) the position is chosen automatically based on TickPosition.

Declaration
public double? LinePosition { get; set; }
Property Value
Type Description
double?Gets or sets the position of the scale line along the cross axis as a fraction of the gauge dimension (0.0–1.0). When null (default) the position is chosen automatically based on TickPosition.

Marginlink

Gets or sets the outer margin used to lay out the scale within the gauge.

Declaration
public double Margin { get; set; }
Property Value
Type Description
doubleGets or sets the outer margin used to lay out the scale within the gauge.

Maxlink

Gets or sets the maximum scale value.

Declaration
public double Max { get; set; }
Property Value
Type Description
doubleGets or sets the maximum scale value.

Minlink

Gets or sets the minimum scale value.

Declaration
public double Min { get; set; }
Property Value
Type Description
doubleGets or sets the minimum scale value.

MinorSteplink

Gets or sets the minor tick interval.

Declaration
public double MinorStep { get; set; }
Property Value
Type Description
doubleGets or sets the minor tick interval.

MinorTickLengthlink

Gets or sets the minor tick length in pixels.

Declaration
public double MinorTickLength { get; set; }
Property Value
Type Description
doubleGets or sets the minor tick length in pixels.

Orientationlink

Gets or sets the linear gauge orientation.

Declaration
public Orientation Orientation { get; set; }
Property Value
Type Description
OrientationGets or sets the linear gauge orientation.

Reversedlink

Gets or sets whether the scale direction is reversed (Max at start, Min at end). For horizontal gauges this puts Max on the left; for vertical it puts Max at the bottom.

Declaration
public bool Reversed { get; set; }
Property Value
Type Description
boolGets or sets whether the scale direction is reversed (Max at start, Min at end). For horizontal gauges this puts Max on the left; for vertical it puts Max at the bottom.

ShowFirstTicklink

Gets or sets whether the first major tick is rendered.

Declaration
public bool ShowFirstTick { get; set; }
Property Value
Type Description
boolGets or sets whether the first major tick is rendered.

ShowLastTicklink

Gets or sets whether the last major tick is rendered.

Declaration
public bool ShowLastTick { get; set; }
Property Value
Type Description
boolGets or sets whether the last major tick is rendered.

ShowTickLabelslink

Gets or sets whether major tick labels are rendered.

Declaration
public bool ShowTickLabels { get; set; }
Property Value
Type Description
boolGets or sets whether major tick labels are rendered.

Steplink

Gets or sets the major tick interval.

Declaration
public double Step { get; set; }
Property Value
Type Description
doubleGets or sets the major tick interval.

Strokelink

Gets or sets the scale stroke color.

Declaration
public string Stroke { get; set; }
Property Value
Type Description
stringGets or sets the scale stroke color.

StrokeWidthlink

Gets or sets the width of the scale stroke.

Declaration
public double StrokeWidth { get; set; }
Property Value
Type Description
doubleGets or sets the width of the scale stroke.

TickLabelOffsetlink

Gets or sets the offset between the scale line and the tick labels.

Declaration
public double TickLabelOffset { get; set; }
Property Value
Type Description
doubleGets or sets the offset between the scale line and the tick labels.

TickLengthlink

Gets or sets the major tick length in pixels.

Declaration
public double TickLength { get; set; }
Property Value
Type Description
doubleGets or sets the major tick length in pixels.

TickPositionlink

Gets or sets the tick position relative to the scale line.

Declaration
public GaugeTickPosition TickPosition { get; set; }
Property Value
Type Description
GaugeTickPositionGets or sets the tick position relative to the scale line.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

SetParametersAsynclink

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙