Class LegendLocation
Gets or sets the location of the legend, relative to the circular gauge.
If x is 20, legend moves by 20 pixels to the right of the gauge. It requires the Position
to be Custom
in the legend settings.
Inheritance
Namespace: Syncfusion.Blazor.CircularGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LegendLocation : OwningComponentBase
Constructors
LegendLocation()
Declaration
public LegendLocation()
Properties
X
Gets or sets the X coordinate of the legend in the circular gauge.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double specifying the horizontal position in pixels. Adjusts the legend's horizontal position relative to the circular gauge. |
Remarks
The X
property determines how far the legend is placed horizontally from its default position when using a custom layout.
Y
Gets or sets the Y coordinate of the legend in the circular gauge.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double specifying the vertical position in pixels. Adjusts the legend's vertical position relative to the circular gauge. |
Remarks
The Y
property determines how far the legend is placed vertically from its default position when using a custom layout.
Methods
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. |