Class
AdfMark
OfficeIMO.Adf
An ADF text mark such as strong, emphasis, code, or link.
Inheritance
- object
- AdfMark
Usage
Explore 3 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 2
- Method AdfMark.SetAttribute``1
- Property AdfNode.Marks
Accepted by parameters 1
- Method AdfNode.TextNode
Constructors
Methods
public string? GetStringAttribute(string name) #Gets a string attribute when present.
Parameters
- name string
Returns
string?SetAttribute``1 2 overloads
public AdfMark SetAttribute<T>(string name, T? value) #Sets a JSON-compatible mark attribute.
Type Parameters
- T
Parameters
- name string
- value T?
Returns
AdfMarkInherited Methods
Properties
public bool IncludeEmptyAttributes { get; set; } #Includes an empty attributes object when no attributes are set. Parsing retains explicit source presence.
public IDictionary<string, JsonElement> Attributes { get; } #Mark attributes retained as arbitrary JSON values.
public IDictionary<string, JsonElement> ExtensionData { get; } #Unknown mark properties retained during parse/write round trips.