MarkdownAttributeSet
OfficeIMO.Markdown
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
- Property AbbreviationInline.Attributes
- Property BoldInline.Attributes
- Property BoldItalicInline.Attributes
- Property BoldItalicSequenceInline.Attributes
- Property BoldSequenceInline.Attributes
- Property CalloutBlock.Attributes
- Property CodeBlock.Attributes
- Property CodeSpanInline.Attributes
- Property CustomContainerBlock.Attributes
- Property DefinitionListBlock.Attributes
- Property DefinitionListDefinition.Attributes
- Property DefinitionListEntry.Attributes
- Property DefinitionListGroup.Attributes
- Property DefinitionListTerm.Attributes
- Property DetailsBlock.Attributes
- Property FootnoteDefinitionBlock.Attributes
- Property FootnoteRefInline.Attributes
- Property FrontMatterBlock.Attributes
- Property HardBreakInline.Attributes
- Property HeadingBlock.Attributes
- Property HighlightInline.Attributes
- Property HighlightSequenceInline.Attributes
- Property HorizontalRuleBlock.Attributes
- Property HtmlCommentBlock.Attributes
- Property HtmlRawBlock.Attributes
- Property HtmlRawInline.Attributes
- Property HtmlTagSequenceInline.Attributes
- Property ImageBlock.Attributes
- Property ImageInline.Attributes
- Property ImageLinkInline.Attributes
- Property InlineSequence.Attributes
- Property InsertedInline.Attributes
- Property InsertedSequenceInline.Attributes
- Property ItalicInline.Attributes
- Property ItalicSequenceInline.Attributes
- Property LinkInline.Attributes
- Property ListItem.Attributes
- Method MarkdownAttributeSet.Create
- Property MarkdownAttributeSet.Empty
- Property MarkdownBlock.Attributes
- Property MarkdownCodeFenceInfo.GenericAttributes
- Property MarkdownDocument.Attributes
- Property MarkdownInline.Attributes
- Property MarkdownObject.Attributes
- Property MarkdownSyntaxNode.Attributes
- Property MarkdownTextRun.Attributes
- Property MathBlock.Attributes
- Property MathInline.Attributes
- Property OrderedListBlock.Attributes
- Property ParagraphBlock.Attributes
- Property QuoteBlock.Attributes
- Property SemanticFencedBlock.Attributes
- Property SoftBreakInline.Attributes
- Property StrikethroughInline.Attributes
- Property StrikethroughSequenceInline.Attributes
- Property SubscriptInline.Attributes
- Property SubscriptSequenceInline.Attributes
- Property SummaryBlock.Attributes
- Property SuperscriptInline.Attributes
- Property SuperscriptSequenceInline.Attributes
- Property TableBlock.Attributes
- Property TableCell.Attributes
- Property TableRow.Attributes
- Property TocBlock.Attributes
- Property TocMarkerBlock.Attributes
- Property UnderlineInline.Attributes
- Property UnorderedListBlock.Attributes
Accepted by parameters 1
- Constructor MarkdownSyntaxNode.MarkdownSyntaxNode
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
- classes System.Collections.Generic.IEnumerable<string>? = null
- attributes System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string?>>? = null
Returns
MarkdownAttributeSetpublic string? GetAttribute(params string[] aliases) #Reads the first matching attribute value by alias.
Parameters
- aliases string[]
Returns
string?public bool HasClass(string className) #Checks whether a class is present using ordinal comparison.
Parameters
- className string
Returns
boolpublic bool TryGetAttribute(string name, out string? value) #Reads an attribute value by key.
Parameters
- name string
- value string?
Returns
boolInherited Methods
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.