API Reference
Class
AdfMark
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) #Returns:
String?Gets a string attribute when present.
Parameters
- name System.String
SetAttribute``1 2 overloads
public AdfMark SetAttribute<T>(String name, T? value) #Returns:
AdfMarkSets a JSON-compatible mark attribute.
Type Parameters
- T
Parameters
- name System.String
- value T?
public AdfMark SetAttribute<T>(String name, T? value, JsonTypeInfo<T?> typeInfo) #Returns:
AdfMarkSets a custom mark attribute using source-generated JSON metadata.
Type Parameters
- T
Parameters
- name System.String
- value T?
- typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?>
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public Boolean 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.