API Reference

Class

HtmlDataUri

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Media-neutral data URI with bounded-size inspection and byte decoding.

Inheritance

  • Object
  • HtmlDataUri

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public Byte[] DecodeBytes() #
Returns: Byte[]

Decodes the payload as bytes.

public String DecodeText() #
Returns: String

Decodes the payload as UTF-8 text.

public Int64 EstimateDecodedByteCount() #
Returns: Int64

Calculates decoded byte count without allocating the decoded payload.

public Boolean TryDecodeBytes(out Byte[] bytes) #
Returns: Boolean

Attempts to decode the payload as bytes.

Parameters

bytes System.Byte[]@ requiredposition: 0
public static Boolean TryParse(String source, out HtmlDataUri dataUri) #
Returns: Boolean

Tries to parse a data URI with an explicit media type.

Parameters

source System.String requiredposition: 0
dataUri OfficeIMO.Html.HtmlDataUri@ requiredposition: 1

Properties

public String Metadata { get; } #

Metadata without the leading data: prefix.

public String MediaType { get; } #

Declared media type.

public String Data { get; } #

Raw payload after the comma separator.

public Boolean IsBase64 { get; } #

Whether the payload uses base64 encoding.