Class ColorStop
Defines the color range properties for the gradient.
Inheritance
Namespace: Syncfusion.Blazor.CircularGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class ColorStop : OwningComponentBase
Constructors
ColorStop()
Declaration
public ColorStop()
Properties
Color
Gets or sets the color to be used in the gradient.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the color in a valid CSS format. Default is |
Remarks
This property specifies the color used for the color stop in the gradient.
Offset
Gets or sets the gradient color begin and end in percentage.
Declaration
public string Offset { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the offset as a percentage. Default is |
Remarks
The Offset determines the position of the color stop in the gradient, expressed as a percentage.
Opacity
Gets or sets the opacity to be used in the gradient.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double representing the opacity level, where 1 is fully opaque and 0 is fully transparent. Default is |
Remarks
This property defines the transparency level of the color stop in the gradient.
Style
Gets or sets the style of the color stop in the gradient element.
Declaration
public string Style { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String that defines additional CSS styles for the color stop. Default is an empty string. |
Remarks
Use this property to specify custom CSS styles for individual color stops.
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. |