Class GradientStops
Represents collection of gradient stops.
Inheritance
Namespace: Syncfusion.XlsIO.Implementation.Shapes
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class GradientStops : List<GradientStopImpl>
Constructors
GradientStops()
Default constructor.
Declaration
public GradientStops()
GradientStops(Byte[])
Initializes new instance of the gradient stops collection and extracts settings from byte array.
Declaration
public GradientStops(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | Byte array to parse. |
Properties
Angle
Gets / sets gradient angle.
Declaration
public int Angle { get; set; }
Property Value
Type |
---|
System.Int32 |
FillToRect
This element defines the "focus" rectangle for the center shade, specified relative to the fill tile rectangle.
Declaration
public Rectangle FillToRect { get; set; }
Property Value
Type |
---|
Rectangle |
GradientType
Gets / sets type of the gradient.
Declaration
public GradientType GradientType { get; set; }
Property Value
Type |
---|
GradientType |
IsDoubled
Returns true if gradient stops are symmetric. Read-only.
Declaration
public bool IsDoubled { get; }
Property Value
Type |
---|
System.Boolean |
TileRect
it's define the tilerect property.
Declaration
public Rectangle TileRect { get; set; }
Property Value
Type |
---|
Rectangle |
Methods
Clone()
Creates copy of the current instance.
Declaration
public GradientStops Clone()
Returns
Type | Description |
---|---|
GradientStops | Copy of the current instance. |
DoubleGradientStops()
Doubles gradient stops in the collection and updates their positions.
Declaration
public void DoubleGradientStops()
InvertGradientStops()
Inverts gradient stops order and updates their positions correctly.
Declaration
public void InvertGradientStops()
Serialize(Stream)
Saves gradient stops into stream in binary format.
Declaration
public void Serialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to serialize into. |
ShrinkGradientStops()
Shrinks gradient stop.
Declaration
public GradientStops ShrinkGradientStops()
Returns
Type | Description |
---|---|
GradientStops | Shrinked Gradient stops. |