System.Windows.Forms.HtmlDocument.Images Property

Gets a collection of all image tags in the document.

Syntax

public HtmlElementCollection Images { get; }

Value

Documentation for this section has not yet been entered.

Remarks

HtmlDocument.Images returns a collection of System.Windows.Forms.HtmlElement objects. To access attributes, such as ALT and SRC, that are not directly exposed by System.Windows.Forms.HtmlElement, use the HtmlElement.GetAttribute(string) method.

To add a new image to a document, either create a new IMG tag as a string, and assign it to the HtmlElement.InnerHtml property of an element previously added to the HTML DOM; or use the HtmlDocument.CreateElement(string) method, set its properties using HtmlElement.SetAttribute(string, string), and add it as a child of an existing element using HtmlElement.AppendChild(HtmlElement).

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0