API Reference
AdfDocument
Represents an Atlas Document Format document while retaining fields that OfficeIMO does not yet understand.
Inheritance
- Object
- AdfDocument
Usage
Explore 6 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 3
- Method AdfConverter.FromHtml
- Method AdfConverter.FromMarkdown
- Method AdfDocument.Parse
Accepted by parameters 3
- Method AdfConverter.ToHtml
- Method AdfConverter.ToMarkdown
- Method AdfConverter.ToMarkdownDocument
Constructors
public AdfDocument(IEnumerable<AdfNode>? content) #Creates an ADF document with the supplied top-level nodes.
Parameters
- content System.Collections.Generic.IEnumerable<OfficeIMO.Adf.AdfNode>?
Methods
public static AdfDocument Parse(String json) #AdfDocumentParses an ADF JSON document and retains unrecognized fields for round trips.
Parameters
- json System.String
public static AdfDocument Parse(String json, AdfProcessingOptions options) #AdfDocumentParses ADF JSON with explicit resource limits and cancellation.
Parameters
- json System.String
- options OfficeIMO.Adf.AdfProcessingOptions
public String ToJson(Boolean indented = false) #StringSerializes this document to ADF JSON without performing structural validation.
Parameters
- indented System.Boolean = false
public String ToJson(AdfProcessingOptions options, Boolean indented = false) #StringSerializes ADF JSON with explicit resource limits and cancellation.
Parameters
- options OfficeIMO.Adf.AdfProcessingOptions
- indented System.Boolean = false
public AdfValidationResult Validate() #AdfValidationResultValidates the structural ADF contract without rejecting unknown node or mark types.
public AdfValidationResult Validate(AdfProcessingOptions options) #AdfValidationResultValidates ADF structure with explicit resource limits and cancellation.
Parameters
- options OfficeIMO.Adf.AdfProcessingOptions
public AdfValidationResult Validate(AdfValidationOptions options) #AdfValidationResultValidates against the selected structural or bundled full-schema contract.
Parameters
- options OfficeIMO.Adf.AdfValidationOptions
public AdfValidationResult Validate(AdfValidationOptions options, CancellationToken cancellationToken) #AdfValidationResultValidates against the selected contract with cancellation during graph and rule traversal.
Parameters
- options OfficeIMO.Adf.AdfValidationOptions
- cancellationToken System.Threading.CancellationToken
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public IDictionary<String, JsonElement> ExtensionData { get; } #Unknown root properties retained during parse/write round trips.