AdfNode
OfficeIMO.Adf
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 int? GetInt32Attribute(string name) #Gets an integer attribute when present.
Parameters
- name string
Returns
int?public string? GetStringAttribute(string name) #Gets a string attribute when present.
Parameters
- name string
Returns
string?public AdfNode SetAttribute<T>(string name, T? value) #Sets a JSON-compatible attribute value.
Type Parameters
- T
Parameters
- name string
- value T?
Returns
AdfNodeInherited Methods
Properties
public bool IncludeEmptyAttributes { get; set; } #Includes an empty attributes object when no attributes are set. Parsing retains explicit source presence.
public bool IncludeEmptyContent { get; set; } #Includes an empty content array when there are no children. Parsing retains explicit source presence.
public bool 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.