menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PatternElement - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PatternElement

    Implements the "pattern" element of SVG DOM.

    Inheritance
    System.Object
    Element
    SuperElement
    PatternElement
    Implements
    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Inherited Members
    Element.AddChild(Element)
    Element.Attributes
    Element.CanAddChild(Element)
    Element.Children
    Element.GetAttribute(Object, Object)
    Element.Id
    Element.Name
    Element.OwnerDocument
    Element.Parent
    Element.SetAttribute(Object, Object, Object)
    Element.Text
    Element.WriteXmlAttributes(XmlWriter)
    SuperElement.DrawSelf(Graphics)
    SuperElement.IClipingAttribute.ClipPath
    SuperElement.IClipingAttribute.ClipRule
    SuperElement.IFillAttributes.Fill
    SuperElement.IFillAttributes.FillOpacity
    SuperElement.IFontAttributes.Font
    SuperElement.IFontAttributes.FontFamily
    SuperElement.IFontAttributes.FontSize
    SuperElement.IFontAttributes.FontSizeAdjust
    SuperElement.IFontAttributes.FontStretch
    SuperElement.IFontAttributes.FontStyle
    SuperElement.IFontAttributes.FontVariant
    SuperElement.IFontAttributes.FontWeight
    SuperElement.IOpacityAttribute.Opacity
    SuperElement.IStrokeAttributes.Stroke
    SuperElement.IStrokeAttributes.StrokeDasharray
    SuperElement.IStrokeAttributes.StrokeDashoffset
    SuperElement.IStrokeAttributes.StrokeLinecap
    SuperElement.IStrokeAttributes.StrokeLinejoin
    SuperElement.IStrokeAttributes.StrokeMiterlimit
    SuperElement.IStrokeAttributes.StrokeOpacity
    SuperElement.IStrokeAttributes.StrokeWidth
    SuperElement.ITransformAttribute.Transform
    SuperElement.IViewBoxAttribute.ViewBox
    SuperElement.SetXmlAttribute(XmlAttribute)
    SuperElement.Style
    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.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
    SuperElement.Draw(Graphics)

    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.

    Implements

    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved