Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

AdfMark

Namespace OfficeIMO.Adf
Assembly OfficeIMO.Adf
Source revision 45ddf07f0b84 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 System.String requiredposition: 0

Methods

public String? GetStringAttribute(String name) #
Returns: String?

Gets a string attribute when present.

Parameters

name System.String requiredposition: 0
SetAttribute``1 2 overloads
public AdfMark SetAttribute<T>(String name, T? value) #
Returns: AdfMark

Sets a JSON-compatible mark attribute.

Type Parameters

T

Parameters

name System.String requiredposition: 0
value T? requiredposition: 1
public AdfMark SetAttribute<T>(String name, T? value, JsonTypeInfo<T?> typeInfo) #
Returns: AdfMark

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

Type Parameters

T

Parameters

name System.String requiredposition: 0
value T? requiredposition: 1
typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo<T?> requiredposition: 2

Properties

public String Type { get; set; } #

Mark type.

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.