Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

EmailHtmlImageDocument

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email.Html
Modifiers sealed

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

Methods

public static EmailHtmlImageDocument Parse(String html) #
Returns: EmailHtmlImageDocument

Parses an HTML fragment or document under the shared OfficeIMO limits without performing network access.

Parameters

html System.String requiredposition: 0
HTML fragment or document to inspect.
public Void SetImageSource(Int32 imageIndex, String source) #
Returns: Void

Rewrites one image source selected by its stable document-order index.

Parameters

imageIndex System.Int32 requiredposition: 0
Index from Index.
source System.String requiredposition: 1
Replacement source, such as a cid: reference.
public String ToHtml() #
Returns: String

Serializes the current DOM while retaining fragment versus document shape.

Properties

public IReadOnlyList<EmailHtmlImageReference> Images { get; } #

Images with explicit src attributes in document order.