Class ImageElement
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.Windows.Forms.Chart.SvgBase
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class ImageElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
ImageElement()
Initializes a new instance of the ImageElement class.
Declaration
public ImageElement()
Properties
Height
Gets or sets the element height.
Declaration
public Length Height { get; set; }
Property Value
Type | Description |
---|---|
Length | The height. |
HRef
Gets or sets the image referance.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The referance. |
Width
Gets or sets the element width.
Declaration
public Length Width { get; set; }
Property Value
Type | Description |
---|---|
Length | The width. |
X
Gets or sets the X coordinate.
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
FromImage(Image, Single, Single, Single, Single)
Creates the ImageElement instance by the specified System.Drawing.Image.
Declaration
public static ImageElement FromImage(Image img, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | img | The System.Drawing.Image. |
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 |
---|---|
ImageElement | The ImageElement instance. |