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
Modifiers sealed

An ADF text mark such as strong, emphasis, code, or link.

Inheritance

  • Object
  • AdfMark

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

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 ``0 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 ``0 requiredposition: 1
typeInfo System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0} requiredposition: 2

Properties

public String Type { get; set; } #

Mark type.

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.