EmailHtmlImageDocument
OfficeIMO.Email
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
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method EmailHtmlImageDocument.Parse
Methods
public static EmailHtmlImageDocument Parse(string html) #Parses an HTML fragment or document under the shared OfficeIMO limits without performing network access.
Parameters
- html string
- HTML fragment or document to inspect.
Returns
EmailHtmlImageDocumentpublic void SetImageSource(int imageIndex, string source) #Rewrites one image source selected by its stable document-order index.
Parameters
- imageIndex int
- Index from EmailHtmlImageReference.Index.
- source string
- Replacement source, such as a cid: reference.
public string ToHtml() #Serializes the current DOM while retaining fragment versus document shape.
Returns
stringInherited Methods
Properties
public IReadOnlyList<EmailHtmlImageReference> Images { get; } #Images with explicit src attributes in document order.