Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailHtmlImageDocument

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email.Html
Source revision
ba882f6b0d07 with working tree changes
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

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

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 required
HTML fragment or document to inspect.
public void SetImageSource(int imageIndex, string source) #

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

Parameters

imageIndex int required
Index from EmailHtmlImageReference.Index.
source string required
Replacement source, such as a cid: reference.
public string ToHtml() #

Serializes the current DOM while retaining fragment versus document shape.

Returns

string

Properties

public IReadOnlyList<EmailHtmlImageReference> Images { get; } #

Images with explicit src attributes in document order.