API Reference
Class
AdfNode
An ADF content node.
Inheritance
- Object
- AdfNode
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property AdfDocument.Content
- Method AdfNode.SetAttribute``1
- Method AdfNode.SetAttribute``1
- Method AdfNode.TextNode
- Property AdfNode.Content
Accepted by parameters
- Constructor AdfDocument.AdfDocument
Constructors
Methods
public Nullable<Int32> GetInt32Attribute(String name) #Returns:
Nullable<Int32>Gets an integer attribute when present.
Parameters
- name System.String
public String GetStringAttribute(String name) #Returns:
StringGets a string attribute when present.
Parameters
- name System.String
SetAttribute``1 2 overloads
public AdfNode SetAttribute<T>(String name, T value) #Returns:
AdfNodeSets a JSON-compatible attribute value.
Type Parameters
- T
Parameters
- name System.String
- value ``0
public AdfNode SetAttribute<T>(String name, T value, JsonTypeInfo<T> typeInfo) #Returns:
AdfNodeSets a custom attribute using source-generated JSON metadata.
Type Parameters
- T
Parameters
- name System.String
- value ``0
- typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0}
public static AdfNode TextNode(String text, IEnumerable<AdfMark> marks = null) #Returns:
AdfNodeCreates a text node.
Parameters
- text System.String
- marks System.Collections.Generic.IEnumerable{OfficeIMO.Adf.AdfMark} = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Type { get; set; } #Node type such as paragraph, heading, or text.
public String Text { get; set; } #Text payload for text nodes.
public List<AdfMark> Marks { get; } #Marks applied to a text node.
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.