Class IMGElementImpl
Class that is responsible for <IMG> Tag.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
[ElementTag("img")]
public class IMGElementImpl : BaseElement, IHTMLElement, ICloneable, IDisposable
Constructors
IMGElementImpl(IHTMLElement)
Initializes a new instance of the IMGElementImpl class
Declaration
public IMGElementImpl(IHTMLElement parent)
Parameters
Type | Name | Description |
---|---|---|
IHTMLElement | parent | Parent element. |
Properties
Default
Gets the default image.
Declaration
public static Bitmap Default { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
DefaultStream
Gets the stream which represents the default image.
Declaration
public static Stream DefaultStream { get; }
Property Value
Type |
---|
System.IO.Stream |
Image
Gets or sets the bitmap of the image which represents this element.
Declaration
public Bitmap Image { get; set; }
Property Value
Type |
---|
System.Drawing.Bitmap |
SupportedEvents
Returns an array of supported events.
Declaration
public override string[] SupportedEvents { get; }
Property Value
Type |
---|
System.String[] |
Overrides
Methods
CalculateChildPositions(Point, Rectangle)
Overridden. Calculates the position for the child elements.
Declaration
protected override BlocksCollection CalculateChildPositions(Point curPosition, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | curPosition | Current global position. |
System.Drawing.Rectangle | bounds | Bounds for this element. |
Returns
Type | Description |
---|---|
BlocksCollection | Array of blocks. |
Overrides
InitializeElement()
Initializes element.
Declaration
protected override void InitializeElement()
Overrides
OnDispose()
Overridden. Disposes bitmap and closes stream.
Declaration
protected override void OnDispose()
Overrides
OnImageChanged(ValueChangedEventArgs)
Raises ImageChanged event if Image property value is changed.
Declaration
protected virtual void OnImageChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args | Event arguments. |
OnNoImage(NoImageEventArgs)
Raises NoImage event.
Declaration
protected virtual void OnNoImage(NoImageEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
NoImageEventArgs | args | Event arguments. |
RaiseNoImage(NoImageEventArgs)
Raises the NoImage event.
Declaration
protected void RaiseNoImage(NoImageEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
NoImageEventArgs | args | Event arguments. |
ReCalculateDocument()
Overridden. Raised when attribute src has been changed.
Declaration
protected override void ReCalculateDocument()
Overrides
ShowToolTip()
Overriden. Shows the ToolTip on the element.
Declaration
protected override void ShowToolTip()
Overrides
Events
ImageChanged
Utility event. Raised on Bottom property change.
Declaration
public event ValueChangedEventHandler ImageChanged
Event Type
Type |
---|
ValueChangedEventHandler |
NoImage
Raised when image with specified src could not be found.
Declaration
public event NoImageEventHandler NoImage
Event Type
Type |
---|
NoImageEventHandler |