Class PatternElement
PatternElement 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 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 H ref.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The H ref. |
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 length.
Declaration
public Length X { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y
Gets or sets the length.
Declaration
public Length Y { get; set; }
Property Value
Type | Description |
---|---|
Length | The lengthY. |
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
FormHatchBrush(HatchBrush)
Forms the hatch brush.
Declaration
public static PatternElement FormHatchBrush(HatchBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.HatchBrush | brush | The brush. |
Returns
Type | Description |
---|---|
PatternElement | The pattern element |
FormTextureBrush(TextureBrush)
Forms the texture brush.
Declaration
public static PatternElement FormTextureBrush(TextureBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.TextureBrush | brush | The brush. |
Returns
Type | Description |
---|---|
PatternElement | Pattern element |
GetGDIBrush()
Gets the GDI brush.
Declaration
public Brush GetGDIBrush()
Returns
Type | Description |
---|---|
System.Drawing.Brush | The GDI brush |