RadzenLinearGaugeScale component.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
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
public class RadzenLinearGaugeScale : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderRadzenLinearGaugeScale component.
public RadzenLinearGaugeScale()Gets or sets the child content containing pointers and ranges.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content containing pointers and ranges. |
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.
public EventCallback<double> Click { get; set; }
| 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. |
Gets the end point of the rendered scale line (accounts for Reversed and RTL).
public Point CurrentEnd { get; }
| Type | Description |
|---|---|
| Point | Gets the end point of the rendered scale line (accounts for Reversed and RTL). |
Gets the start point of the rendered scale line (accounts for Reversed and RTL).
public Point CurrentStart { get; }
| Type | Description |
|---|---|
| Point | Gets the start point of the rendered scale line (accounts for Reversed and RTL). |
Gets or sets the format string used for tick labels.
public string FormatString { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the format string used for tick labels. |
Gets or sets the formatter used for tick labels.
public Func<double, string> Formatter { get; set; }
| Type | Description |
|---|---|
| Func<double, string> | Gets or sets the formatter used for tick labels. |
Gets or sets the parent linear gauge.
public RadzenLinearGauge Gauge { get; set; }
| Type | Description |
|---|---|
| RadzenLinearGauge | Gets or sets the parent linear gauge. |
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.
public double? LinePosition { get; set; }
| 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. |
Gets or sets the outer margin used to lay out the scale within the gauge.
public double Margin { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the outer margin used to lay out the scale within the gauge. |
Gets or sets the maximum scale value.
public double Max { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the maximum scale value. |
Gets or sets the minimum scale value.
public double Min { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the minimum scale value. |
Gets or sets the minor tick interval.
public double MinorStep { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the minor tick interval. |
Gets or sets the minor tick length in pixels.
public double MinorTickLength { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the minor tick length in pixels. |
Gets or sets the linear gauge orientation.
public Orientation Orientation { get; set; }
| Type | Description |
|---|---|
| Orientation | Gets or sets the linear gauge orientation. |
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.
public bool Reversed { get; set; }
| Type | Description |
|---|---|
| bool | 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. |
Gets or sets whether the first major tick is rendered.
public bool ShowFirstTick { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether the first major tick is rendered. |
Gets or sets whether the last major tick is rendered.
public bool ShowLastTick { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether the last major tick is rendered. |
Gets or sets whether major tick labels are rendered.
public bool ShowTickLabels { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether major tick labels are rendered. |
Gets or sets the major tick interval.
public double Step { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the major tick interval. |
Gets or sets the scale stroke color.
public string Stroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the scale stroke color. |
Gets or sets the width of the scale stroke.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the width of the scale stroke. |
Gets or sets the offset between the scale line and the tick labels.
public double TickLabelOffset { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the offset between the scale line and the tick labels. |
Gets or sets the major tick length in pixels.
public double TickLength { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the major tick length in pixels. |
Gets or sets the tick position relative to the scale line.
public GaugeTickPosition TickPosition { get; set; }
| Type | Description |
|---|---|
| GaugeTickPosition | Gets or sets the tick position relative to the scale line. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |