Class LinearGaugeAnnotation
Defines the annotation element for an axis in linear gauge component.
Inheritance
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeAnnotation : OwningComponentBase
Constructors
LinearGaugeAnnotation()
Declaration
public LinearGaugeAnnotation()
Properties
AxisIndex
Gets or sets the index value of the axis of the linear gauge.
Declaration
public int AxisIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
AxisValue
Gets or sets the value in the axis in linear gauge.
Declaration
public double AxisValue { get; set; }
Property Value
Type |
---|
System.Double |
ChildContent
Gets or sets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Content
Gets or sets the content for the annotations.
Declaration
public string Content { get; set; }
Property Value
Type |
---|
System.String |
ContentTemplate
Gets or sets the content of the annotation in linear gauge.
Declaration
public RenderFragment ContentTemplate { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
HorizontalAlignment
Gets or sets the horizontal alignment of annotation.
Declaration
public Placement HorizontalAlignment { get; set; }
Property Value
Type |
---|
Placement |
VerticalAlignment
Gets or sets the vertical alignment of annotation.
Declaration
public Placement VerticalAlignment { get; set; }
Property Value
Type |
---|
Placement |
X
Gets or sets the x position for the annotation in linear gauge.
Declaration
public double X { get; set; }
Property Value
Type |
---|
System.Double |
Y
Gets or sets the y position for the annotation in linear gauge.
Declaration
public double Y { get; set; }
Property Value
Type |
---|
System.Double |
ZIndex
Gets or sets the z-index of the annotation.
Declaration
public string ZIndex { get; set; }
Property Value
Type |
---|
System.String |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
OnParametersSetAsync()
OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
UpdateChildProperties(LinearGaugeAnnotationFont)
UpdateChildProperties is used to update the child properties.
Declaration
public void UpdateChildProperties(LinearGaugeAnnotationFont annotationValue)
Parameters
Type | Name | Description |
---|---|---|
LinearGaugeAnnotationFont | annotationValue | annotation fonts. |