Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

AdfMark

OfficeIMO.Adf

Namespace
OfficeIMO.Adf
Assembly
OfficeIMO.Adf
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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

Accepted by parameters 1

Constructors

public AdfMark(string type) #

Creates an ADF mark.

Parameters

type string required

Methods

public string? GetStringAttribute(string name) #

Gets a string attribute when present.

Parameters

name string required

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 required
value T? required

Returns

AdfMark
public AdfMark SetAttribute<T>(string name, T? value, JsonTypeInfo<T?> typeInfo) #

Sets a custom mark attribute using source-generated JSON metadata.

Type Parameters

T

Parameters

name string required
value T? required
typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?> required

Returns

AdfMark

Properties

public string Type { get; set; } #

Mark type.

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.