Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

AdfDocument

Namespace OfficeIMO.Adf
Assembly OfficeIMO.Adf
Modifiers sealed

Represents an Atlas Document Format document while retaining fields that OfficeIMO does not yet understand.

Inheritance

  • Object
  • AdfDocument

Usage

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

Accepted by parameters

Constructors

AdfDocument 2 overloads
public AdfDocument() #

Creates an empty ADF document.

public AdfDocument(IEnumerable<AdfNode> content) #

Creates an ADF document with the supplied top-level nodes.

Parameters

content System.Collections.Generic.IEnumerable{OfficeIMO.Adf.AdfNode} requiredposition: 0

Methods

public static AdfDocument Parse(String json) #
Returns: AdfDocument

Parses an ADF JSON document and retains unrecognized fields for round trips.

Parameters

json System.String requiredposition: 0
public String ToJson(Boolean indented = false) #
Returns: String

Serializes this document to ADF JSON without performing structural validation.

Parameters

indented System.Boolean = false optionalposition: 0
public AdfValidationResult Validate() #
Returns: AdfValidationResult

Validates the structural ADF contract without rejecting unknown node or mark types.

Properties

public Int32 Version { get; set; } #

ADF schema version.

public String Type { get; set; } #

Root node type. A normal ADF document uses doc.

public List<AdfNode> Content { get; } #

Top-level document nodes.

public IDictionary<String, JsonElement> ExtensionData { get; } #

Unknown root properties retained during parse/write round trips.