Class LinearGradientElement
LinearGradientElement class.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.SVG.IO
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class LinearGradientElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
LinearGradientElement()
Initializes a new instance of the LinearGradientElement class.
Declaration
public LinearGradientElement()
Properties
GradientTransform
Gets or sets the gradient transform.
Declaration
public TransformList GradientTransform { get; set; }
Property Value
Type | Description |
---|---|
TransformList | The gradient transform. |
GradientUnits
Gets or sets the gradient units.
Declaration
public EUnits GradientUnits { get; set; }
Property Value
Type | Description |
---|---|
EUnits | The gradient units. |
HRef
Gets or sets the H ref.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The H ref. |
SpreadMethod
Gets or sets the spread method.
Declaration
public SpreadMethod SpreadMethod { get; set; }
Property Value
Type | Description |
---|---|
SpreadMethod | The spread method. |
X1
Gets or sets the length.
Declaration
public Length X1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
X2
Gets or sets the length.
Declaration
public Length X2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y1
Gets or sets the length.
Declaration
public Length Y1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y2
Gets or sets the length.
Declaration
public Length Y2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Methods
Draw(Graphics)
Draws the specified graphics.
Declaration
public override void Draw(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics. |
Overrides
FromBrush(LinearGradientBrush)
Froms the brush.
Declaration
public static LinearGradientElement FromBrush(LinearGradientBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.LinearGradientBrush | brush | The brush. |
Returns
Type | Description |
---|---|
LinearGradientElement | The brush |
GetGDIBrush()
Gets the GDI brush.
Declaration
public Brush GetGDIBrush()
Returns
Type | Description |
---|---|
System.Drawing.Brush | The brush |