menu

WinForms

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

    Show / Hide Table of Contents

    Class RectElement

    Implements the "rect" element of SVG DOM.

    Inheritance
    System.Object
    Element
    SuperElement
    RectElement
    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.Draw(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 RectElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute

    Constructors

    RectElement()

    Initializes a new instance of the RectElement class.

    Declaration
    public RectElement()

    Properties

    Height

    Gets or sets the height of element.

    Declaration
    public Length Height { get; set; }
    Property Value
    Type Description
    Length

    The height.

    RX

    Gets or sets the horizonral radius of corners.

    Declaration
    public Length RX { get; set; }
    Property Value
    Type Description
    Length

    The horizonral radius.

    RY

    Gets or sets the vertical radius of corners.

    Declaration
    public Length RY { get; set; }
    Property Value
    Type Description
    Length

    The vertical radius.

    Width

    Gets or sets the width of element.

    Declaration
    public Length Width { get; set; }
    Property Value
    Type Description
    Length

    The width.

    X

    Gets or sets the X coordinate of element.

    Declaration
    public Length X { get; set; }
    Property Value
    Type Description
    Length

    The X coordinate.

    Y

    Gets or sets the Y coordinate.

    Declaration
    public Length Y { get; set; }
    Property Value
    Type Description
    Length

    The Y coordinate.

    Methods

    DrawSelf(Graphics)

    Draws the element to specified System.Drawing.Graphics.

    Declaration
    protected override void DrawSelf(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics.

    Overrides
    SuperElement.DrawSelf(Graphics)

    FromCoordinates(Single, Single, Single, Single)

    Creates the RectElement from given coords.

    Declaration
    public static RectElement FromCoordinates(float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Single x

    The x-location of the element.

    System.Single y

    The y-location of the element.

    System.Single width

    The width of the element.

    System.Single height

    The height of the element.

    Returns
    Type Description
    RectElement

    Returns RectElement.

    FromRectangleF(RectangleF)

    Creates the new RectElement instance by the specified System.Drawing.RectangleF.

    Declaration
    public static RectElement FromRectangleF(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect

    The System.Drawing.RectangleF.

    Returns
    Type Description
    RectElement

    Returns RectElement.

    Implements

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