HtmlDocument::Images Property
.NET Framework (current version)
Gets a collection of all image tags in the document.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::HtmlElementCollection^A collection of HtmlElement objects, one for each IMG tag in the document. Elements are returned from the collection in source order.
Images returns a collection of HtmlElement objects. To access attributes, such as ALT and SRC, that are not directly exposed by HtmlElement, use the GetAttribute method.
To add a new image to a document, either create a new IMG tag as a string, and assign it to the InnerHtml property of an element previously added to the HTML DOM; or use the CreateElement method, set its properties using SetAttribute, and add it as a child of an existing element using AppendChild.
.NET Framework
Available since 2.0
Available since 2.0
Show: