WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IMGElementImpl - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IMGElementImpl

    Class that is responsible for <IMG> Tag.

    Inheritance
    System.Object
    BaseElement
    IMGElementImpl
    Implements
    IHTMLElement
    System.ICloneable
    System.IDisposable
    Inherited Members
    BaseElement.DEF_REGEX_OPTIONS
    BaseElement.DEF_RUNTIME_LOCATION
    BaseElement.DEF_RUNTIME_SIZE
    BaseElement.DEF_RUNTIME_VISIBLE
    BaseElement.DEF_RUNTIME
    BaseElement.m_ownFormat
    BaseElement.m_blocks
    BaseElement.m_curPos
    BaseElement.m_bounds
    BaseElement.m_isBlockStructure
    BaseElement.m_isPostponed
    BaseElement.m_oldCursor
    BaseElement.BeforeDisposing
    BaseElement.Dispose()
    BaseElement.InitializeCollections()
    BaseElement.BeginUpdate()
    BaseElement.EndUpdate()
    BaseElement.Focus()
    BaseElement.ApplyFormat(IHTMLFormat)
    BaseElement.RaiseRuntimeAttributeChanged(String, ValueChangedEventArgs)
    BaseElement.RaiseParentChanged(ValueChangedEventArgs)
    BaseElement.RaiseAccessKeyChanged(ValueChangedEventArgs)
    BaseElement.RaiseUniqueIDChanged(ValueChangedEventArgs)
    BaseElement.RaiseInnerHTMLChanged(ValueChangedEventArgs)
    BaseElement.RaiseFormatChanged(ValueChangedEventArgs)
    BaseElement.RaiseBeforeStyleCalculated(PreStyleCalculatedEventArgs)
    BaseElement.RaiseSizeCalculated(EventArgs)
    BaseElement.RaiseLocationCalculated(EventArgs)
    BaseElement.RaiseOnPaint(ElementPaintEventArgs)
    BaseElement.RaiseClickEvent(EventArgs)
    BaseElement.RaiseDoubleClickEvent(EventArgs)
    BaseElement.RaiseMouseMoveEvent(EventArgs)
    BaseElement.RaiseMouseEnterEvent(EventArgs)
    BaseElement.RaiseMouseLeaveEvent(EventArgs)
    BaseElement.RaiseMouseDownEvent(EventArgs)
    BaseElement.RaiseKeyDownEvent(EventArgs)
    BaseElement.RaiseKeyUpEvent(EventArgs)
    BaseElement.RaiseKeyPressEvent(EventArgs)
    BaseElement.RaiseGotFocusEvent(EventArgs)
    BaseElement.RaiseLeaveEvent(EventArgs)
    BaseElement.RaiseTabIndexChangedEvent(EventArgs)
    BaseElement.RaiseQuietModeChangedEvent()
    BaseElement.RaiseBeforeDisposing(EventArgs)
    BaseElement.LeaveFocus()
    BaseElement.CreateEvent(String)
    BaseElement.OnRuntimeAttributeChanged(String, ValueChangedEventArgs)
    BaseElement.OnParentChanged(ValueChangedEventArgs)
    BaseElement.OnAccessKeyChanged(ValueChangedEventArgs)
    BaseElement.OnUniqueIDChanged(ValueChangedEventArgs)
    BaseElement.OnInnerHTMLChanged(ValueChangedEventArgs)
    BaseElement.OnFormatChanged(ValueChangedEventArgs)
    BaseElement.OnBeforeStyleCalculated(PreStyleCalculatedEventArgs)
    BaseElement.OnSizeCalculated(EventArgs)
    BaseElement.OnLocationCalculated(EventArgs)
    BaseElement.OnPaint(ElementPaintEventArgs)
    BaseElement.OnQuietModeChanged()
    BaseElement.OnBeforeDisposing(EventArgs)
    BaseElement.CalculateInnerHTML()
    BaseElement.ReparseInnerHTML(String)
    BaseElement.ReConvertInnerHTML(XmlElement, IHTMLElement)
    BaseElement.InfillFromXMLElement(HTMLUIControl, XmlElement)
    BaseElement.MeasureString(String, HTMLFormat, Int32)
    BaseElement.MeasureString(String, Font)
    BaseElement.MeasureString(String, Font, Int32)
    BaseElement.GetRealMaxWidth(String, Int32, HTMLFormat)
    BaseElement.MoveStartCurPos(Point)
    BaseElement.MoveFinalCurPos(Point)
    BaseElement.GetParentForEvent(String)
    BaseElement.IsEventSupported(String)
    BaseElement.IsAttributeRuntime(String)
    BaseElement.GetElementLevel(IHTMLElement)
    BaseElement.CalculateFormat()
    BaseElement.CalculatePosition()
    BaseElement.GetArray(Hashtable)
    BaseElement.SetOwnFormat(ArrayList, Hashtable)
    BaseElement.SetFirstFormat(ArrayList)
    BaseElement.HideToolTip()
    BaseElement.GetWidthFromParent()
    BaseElement.GetHeightFromParent()
    BaseElement.GetInnerWidthFromParent()
    BaseElement.GetInnerHeightFromParent()
    BaseElement.MakeTopIndent(Int32)
    BaseElement.MakeBottomIndent(Int32)
    BaseElement.GetFormatFromAttributes()
    BaseElement.SyncTabStopCollection(Int32)
    BaseElement.SetFormat(HTMLFormat)
    BaseElement.GetBlockParent()
    BaseElement.GetInheritedFormat()
    BaseElement.CalculateSize()
    BaseElement.DefGetSize()
    BaseElement.DefGetSizeInTable()
    BaseElement.DefGetSizeWithAttributes()
    BaseElement.InFillTextSizeHash()
    BaseElement.InFillTextSizeHash(XmlNode, Int32)
    BaseElement.SetElementStyle()
    BaseElement.GetMaxWidth()
    BaseElement.GetMaxWidthForTextSizing()
    BaseElement.CalculateTextPos(Text, Block)
    BaseElement.CalculateElementPos(Int32, Block)
    BaseElement.CalculateChildPosFromType(BaseElement)
    BaseElement.CalculateInlineChildPos(BaseElement)
    BaseElement.CalculateBlockChildPos(BaseElement)
    BaseElement.CalculateBlockFixedSizePos(BaseElement)
    BaseElement.CalculateBlockNewLineFixedSizePos(BaseElement)
    BaseElement.CalculateBlockSimplePos(BaseElement)
    BaseElement.CalculateBlockNewLineSimplePos(BaseElement)
    BaseElement.CalculateBlockNewLineResizablePos(BaseElement)
    BaseElement.CalculateBlockResizablePos(BaseElement)
    BaseElement.AddBlocksToMain(BaseElement, Block, BlocksCollection)
    BaseElement.IsGoodWidth(Block, Int32, Int32)
    BaseElement.BreakText(Text, Block)
    BaseElement.InsertText(Text, Block, Size)
    BaseElement.SplitText(String, Int32, ArrayList)
    BaseElement.SplitTextToLines(ArrayList, Int32, ArrayList)
    BaseElement.AddElement(Block, Object, Rectangle)
    BaseElement.GetFreeWidthInLine(Block, Int32)
    BaseElement.GetRemainderWidth(Block, Int32)
    BaseElement.GetWidthToBorder(Block, Int32)
    BaseElement.CreateBlock(Block)
    BaseElement.ResizeElement()
    BaseElement.ChangeStartPosition(Block)
    BaseElement.ChangeStartPosition(Rectangle)
    BaseElement.InFillBlocks(String)
    BaseElement.ElementInSameBlock(Rectangle)
    BaseElement.SetLastCurrentPosition()
    BaseElement.ReduceBounds(Rectangle)
    BaseElement.ReduceLocation(Point)
    BaseElement.ReduceWidth(Int32)
    BaseElement.ReduceHeight(Int32)
    BaseElement.ExpandBounds(Rectangle)
    BaseElement.ExpandLocation(Point)
    BaseElement.ExpandWidth(Int32)
    BaseElement.ExpandHeight(Int32)
    BaseElement.ShiftStartPos(Point)
    BaseElement.ProhibitSpaceBefore()
    BaseElement.ProhibitSpaceAfter()
    BaseElement.PreparePositioning(Point, Rectangle)
    BaseElement.NoWrapEnabled()
    BaseElement.DrawElement(PaintEventArgs)
    BaseElement.Draw(PaintEventArgs)
    BaseElement.DrawBlock(Block, PaintEventArgs)
    BaseElement.ProcessDrawBlock(Block, PaintEventArgs)
    BaseElement.DrawText(Graphics, Rectangle, Text, Block)
    BaseElement.ClientToGlobal(Rectangle)
    BaseElement.GlobalToClient(Rectangle)
    BaseElement.ClientToGlobal(RectangleF)
    BaseElement.GlobalToClient(RectangleF)
    BaseElement.DrawBorders(Block, Graphics)
    BaseElement.ProcessSelection()
    BaseElement.Clone()
    BaseElement.Attributes_Changed(Object, BeforeValueChangedEventArgs)
    BaseElement.ReFormatMergeElement(IHTMLElement)
    BaseElement.ReFormatMergElmAndReCalcDoc(IHTMLElement)
    BaseElement.ReFormatCrtElmAndReCalcDoc(IHTMLElement)
    BaseElement.ReFormatCrtDocAndReCalcDoc(IHTMLElement)
    BaseElement.RePaintDocument()
    BaseElement.RePaintElement(IHTMLElement)
    BaseElement.RePositionDocument()
    BaseElement.RePositionElement(IHTMLElement)
    BaseElement.ChildrenFormatMergeAndRepaintDoc(IHTMLElement)
    BaseElement.ChildrenFormatMerge(IHTMLElement, Boolean)
    BaseElement.ChildrenFormatMergeAndRecalcDoc(IHTMLElement)
    BaseElement.ReFormatMergElmAndChildrenAndReCalcDoc(IHTMLElement)
    BaseElement.OnFormatChanged(IHTMLElement, HTMLFormat, HTMLFormat)
    BaseElement.Graphics
    BaseElement.Parent
    BaseElement.AccessKey
    BaseElement.Attributes
    BaseElement.Children
    BaseElement.Events
    BaseElement.HasChildren
    BaseElement.HasEvents
    BaseElement.Format
    BaseElement.ID
    BaseElement.UniqueID
    BaseElement.InnerHTML
    BaseElement.OuterHTML
    BaseElement.Name
    BaseElement.Item[String]
    BaseElement.TabIndex
    BaseElement.Location
    BaseElement.X
    BaseElement.Y
    BaseElement.Size
    BaseElement.Width
    BaseElement.Height
    BaseElement.IsVisible
    BaseElement.IsResizable
    BaseElement.QuietMode
    BaseElement.Control
    BaseElement.Focused
    BaseElement.Text
    BaseElement.SelectedText
    BaseElement.Storage
    BaseElement.OwnFormat
    BaseElement.IsPostponed
    BaseElement.SpaceProhibited
    BaseElement.SkipWhiteSpaces
    BaseElement.IsDisposed
    BaseElement.IsAttributeWidth
    BaseElement.IsAttributeHeight
    BaseElement.IsStyleWidth
    BaseElement.IsStyleHeight
    BaseElement.SkipWidth
    BaseElement.IndentSpace
    BaseElement.Document
    BaseElement.IsCDATA
    BaseElement.FocusDefault
    BaseElement.RuntimeAttributes
    BaseElement.ElementOpenPart
    BaseElement.ElementAttributesPart
    BaseElement.ElementClosePart
    BaseElement.RuntimeAttributeChanged
    BaseElement.ParentChanged
    BaseElement.AccessKeyChanged
    BaseElement.UniqueIDChanged
    BaseElement.InnerHTMLChanged
    BaseElement.FormatChanged
    BaseElement.BeforeStyleCalculated
    BaseElement.Paint
    BaseElement.SizeCalculated
    BaseElement.LocationCalculated
    BaseElement.Click
    BaseElement.DoubleClick
    BaseElement.MouseMove
    BaseElement.MouseEnter
    BaseElement.MouseLeave
    BaseElement.MouseDown
    BaseElement.KeyDown
    BaseElement.KeyUp
    BaseElement.KeyPress
    BaseElement.GotFocus
    BaseElement.Leave
    BaseElement.TabIndexChanged
    BaseElement.QuietModeChanged
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Drawing.Bitmap

    DefaultStream

    Gets the stream which represents the default image.

    Declaration
    public static Stream DefaultStream { get; }
    Property Value
    Type Description
    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 Description
    System.Drawing.Bitmap

    SupportedEvents

    Returns an array of supported events.

    Declaration
    public override string[] SupportedEvents { get; }
    Property Value
    Type Description
    System.String[]
    Overrides
    BaseElement.SupportedEvents

    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
    BaseElement.CalculateChildPositions(Point, Rectangle)

    InitializeElement()

    Initializes element.

    Declaration
    protected override void InitializeElement()
    Overrides
    BaseElement.InitializeElement()

    OnDispose()

    Overridden. Disposes bitmap and closes stream.

    Declaration
    protected override void OnDispose()
    Overrides
    BaseElement.OnDispose()

    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
    BaseElement.ReCalculateDocument()

    ShowToolTip()

    Overriden. Shows the ToolTip on the element.

    Declaration
    protected override void ShowToolTip()
    Overrides
    BaseElement.ShowToolTip()

    Events

    ImageChanged

    Utility event. Raised on Bottom property change.

    Declaration
    public event ValueChangedEventHandler ImageChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    NoImage

    Raised when image with specified src could not be found.

    Declaration
    public event NoImageEventHandler NoImage
    Event Type
    Type Description
    NoImageEventHandler

    Implements

    IHTMLElement
    System.ICloneable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved