Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownAttributeSet

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
089f66d6d97a with working tree changes
Modifiers
sealed

Generic Markdown attributes attached to semantic objects and syntax nodes.

Inheritance

  • object
  • MarkdownAttributeSet

Usage

Explore 68 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 67

Accepted by parameters 1

Methods

public static MarkdownAttributeSet Create(string? elementId = null, IEnumerable<string>? classes = null, IEnumerable<KeyValuePair<string, string?>>? attributes = null) #

Create a generic Markdown attribute set.

Parameters

elementId string? = null optional
classes System.Collections.Generic.IEnumerable<string>? = null optional
attributes System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string?>>? = null optional
public string? GetAttribute(params string[] aliases) #

Reads the first matching attribute value by alias.

Parameters

aliases string[] required

Returns

string?
public bool HasClass(string className) #

Checks whether a class is present using ordinal comparison.

Parameters

className string required

Returns

bool
public bool TryGetAttribute(string name, out string? value) #

Reads an attribute value by key.

Parameters

name string required
value string? required

Returns

bool

Properties

public static MarkdownAttributeSet Empty { get; } #

Empty attribute set used by nodes without generic attributes.

public string? ElementId { get; } #

Optional element id associated with the Markdown node.

public IReadOnlyList<string> Classes { get; } #

CSS-like classes associated with the Markdown node.

public IReadOnlyDictionary<string, string?> Attributes { get; } #

Additional key/value attributes associated with the Markdown node.

public bool IsEmpty { get; } #

Whether the set has no id, classes, or key/value attributes.