API Reference
Class
EmailHtmlImageDocument
Bounded, network-free DOM view used to discover and rewrite image sources in email HTML.
Inheritance
- Object
- EmailHtmlImageDocument
Remarks
Parsing and HTML recovery are owned by OfficeIMO.Html. This type never resolves or downloads a resource; callers remain responsible for authorizing local files and remote network access.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method EmailHtmlImageDocument.Parse
Methods
public static EmailHtmlImageDocument Parse(String html) #Returns:
EmailHtmlImageDocumentParses an HTML fragment or document under the shared OfficeIMO limits without performing network access.
Parameters
- html System.String
- HTML fragment or document to inspect.
public Void SetImageSource(Int32 imageIndex, String source) #Returns:
VoidRewrites one image source selected by its stable document-order index.
Parameters
- imageIndex System.Int32
- Index from Index.
- source System.String
- Replacement source, such as a cid: reference.
public String ToHtml() #Returns:
StringSerializes the current DOM while retaining fragment versus document shape.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IReadOnlyList<EmailHtmlImageReference> Images { get; } #Images with explicit src attributes in document order.