Class PatternElement
Implements the "pattern" element of SVG DOM.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class PatternElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
PatternElement()
Initializes a new instance of the PatternElement class.
Declaration
public PatternElement()
Properties
Height
Gets or sets the height.
Declaration
public Length Height { get; set; }
Property Value
Type | Description |
---|---|
Length | The height. |
HRef
Gets or sets the reference to a different "pattern" element within the current SVG document fragment.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The reference. |
PatternContentUnits
Gets or sets the pattern content units.
Declaration
public EUnits PatternContentUnits { get; set; }
Property Value
Type | Description |
---|---|
EUnits | The pattern content units. |
PatternTransform
Gets or sets the pattern transform.
Declaration
public TransformList PatternTransform { get; set; }
Property Value
Type | Description |
---|---|
TransformList | The pattern transform. |
PatternUnits
Gets or sets the pattern units.
Declaration
public EUnits PatternUnits { get; set; }
Property Value
Type | Description |
---|---|
EUnits | The pattern units. |
Width
Gets or sets the width.
Declaration
public Length Width { get; set; }
Property Value
Type | Description |
---|---|
Length | The width. |
X
Gets or sets the X coordinate of pettern.
Declaration
public Length X { get; set; }
Property Value
Type | Description |
---|---|
Length | The X coordinate. |
Y
Gets or sets the Y coordinate of pettern.
Declaration
public Length Y { get; set; }
Property Value
Type | Description |
---|---|
Length | The Y coordinate. |
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
FormHatchBrush(HatchBrush)
Creates the new PatternElement instance by the specified System.Drawing.Drawing2D.HatchBrush.
Declaration
public static PatternElement FormHatchBrush(HatchBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.HatchBrush | brush | The System.Drawing.Drawing2D.HatchBrush. |
Returns
Type | Description |
---|---|
PatternElement | Returns PatternElement from HatchBrush. |
FormTextureBrush(TextureBrush)
Creates the new PatternElement instance by the specified System.Drawing.TextureBrush.
Declaration
public static PatternElement FormTextureBrush(TextureBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.TextureBrush | brush | The System.Drawing.TextureBrush. |
Returns
Type | Description |
---|---|
PatternElement | Returns PatternElement from TextureBrush. |
GetGDIBrush()
Creates the System.Drawing.Brush instance by the inner elements.
Declaration
public Brush GetGDIBrush()
Returns
Type | Description |
---|---|
System.Drawing.Brush | Return Brush. |