Class LinearGradientElement
Implements the "LinearGradient" element of SVG DOM.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed 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 referense of inherited element.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The referense. |
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 X coordinate of the gradient start.
Declaration
public Length X1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The X coordinate of the gradient start. |
X2
Gets or sets the X coordinate of the gradient end.
Declaration
public Length X2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The X coordinate of the gradient end. |
Y1
Gets or sets the Y coordinate of the gradient start.
Declaration
public Length Y1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The Y coordinate of the gradient start. |
Y2
Gets or sets the Y coordinate of the gradient end.
Declaration
public Length Y2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The Y coordinate of the gradient end. |
Methods
Draw(Graphics)
Draws the element and the inner elements to the specified System.Drawing.Graphics.
Declaration
public override void Draw(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics. |
Overrides
FromBrush(LinearGradientBrush)
Creates the LinearGradientElement element by the specified GDI+ brush.
Declaration
public static LinearGradientElement FromBrush(LinearGradientBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.LinearGradientBrush | brush | The brush. |
Returns
Type | Description |
---|---|
LinearGradientElement | Returns LinearGradientElement from LinearGradientBrush. |
GetGDIBrush()
Creates the GDI+ brush.
Declaration
public Brush GetGDIBrush()
Returns
Type | Description |
---|---|
System.Drawing.Brush | Returns Brush element. |