API Reference
AdfNode
An ADF content node.
Inheritance
- Object
- AdfNode
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 5
- Property AdfConversionOptions.ExtensionResolver
- Property AdfDocument.Content
- Method AdfNode.SetAttribute``1
- Method AdfNode.TextNode
- Property AdfNode.Content
Accepted by parameters 1
- Constructor AdfDocument.AdfDocument
Constructors
Methods
public Int32? GetInt32Attribute(String name) #Int32?Gets an integer attribute when present.
Parameters
- name System.String
public String? GetStringAttribute(String name) #String?Gets a string attribute when present.
Parameters
- name System.String
public AdfNode SetAttribute<T>(String name, T? value) #AdfNodeSets a JSON-compatible attribute value.
Type Parameters
- T
Parameters
- name System.String
- value T?
public AdfNode SetAttribute<T>(String name, T? value, JsonTypeInfo<T?> typeInfo) #AdfNodeSets a custom attribute using source-generated JSON metadata.
Type Parameters
- T
Parameters
- name System.String
- value T?
- typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?>
public static AdfNode TextNode(String text, IEnumerable<AdfMark>? marks = null) #AdfNodeCreates a text node.
Parameters
- text System.String
- marks System.Collections.Generic.IEnumerable<OfficeIMO.Adf.AdfMark>? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Boolean IncludeEmptyAttributes { get; set; } #Includes an empty attributes object when no attributes are set. Parsing retains explicit source presence.
public Boolean IncludeEmptyContent { get; set; } #Includes an empty content array when there are no children. Parsing retains explicit source presence.
public Boolean IncludeEmptyMarks { get; set; } #Includes an empty marks array when there are no marks. Parsing retains explicit source presence.
public IDictionary<String, JsonElement> Attributes { get; } #Node attributes retained as arbitrary JSON values.
public IDictionary<String, JsonElement> ExtensionData { get; } #Unknown node properties retained during parse/write round trips.