Class GradientStop
Defines the different colors and the regions of color transitions.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class GradientStop : DiagramObject, IDiagramObject, ICloneable
Constructors
GradientStop()
Initializes a new instance of the GradientStop.
Declaration
public GradientStop()
GradientStop(GradientStop)
Creates a new instance of the GradientStop from the given GradientStop.
Declaration
public GradientStop(GradientStop src)
Parameters
Type | Name | Description |
---|---|---|
GradientStop | src | GradientStop. |
Properties
Color
Gets or sets the color to be filled over the specified region.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Offset
Gets or sets the position at which the previous color transition ends, and a new color transition starts.
Declaration
public Nullable<double> Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
Opacity
Gets or sets the transparency level of the region.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Clone()
Creates a new object that is a copy of the current gradient stop.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | GradientStop |
Overrides
Implements
System.ICloneable