Class RectElement
RectElement 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 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.
Declaration
public Length Height { get; set; }
Property Value
Type | Description |
---|---|
Length | The height. |
RX
Gets or sets the length.
Declaration
public Length RX { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
RY
Gets or sets the length.
Declaration
public Length RY { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
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 length. |
Methods
DrawSelf(Graphics)
Draws self.
Declaration
protected override void DrawSelf(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics. |
Overrides
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 | Rect element |
FromRectangleF(RectangleF)
Rect from the rectangle.
Declaration
public static RectElement FromRectangleF(RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rect | The rect. |
Returns
Type | Description |
---|---|
RectElement | Rect element |