API Reference
Class
MarkdownAttributeSet
Generic Markdown attributes attached to semantic objects and syntax nodes.
Inheritance
- Object
- MarkdownAttributeSet
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
- 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 MarkdownDoc.Attributes
- Property MarkdownInline.Attributes
- Property MarkdownObject.Attributes
- Property MarkdownSyntaxNode.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 TextRun.Attributes
- Property TocBlock.Attributes
- Property TocMarkerBlock.Attributes
- Property UnderlineInline.Attributes
- Property UnorderedListBlock.Attributes
Accepted by parameters
- Constructor MarkdownSyntaxNode.MarkdownSyntaxNode
Methods
public static MarkdownAttributeSet Create(String elementId = null, IEnumerable<String> classes = null, IEnumerable<KeyValuePair<String, String>> attributes = null) #Returns:
MarkdownAttributeSetCreate a generic Markdown attribute set.
Parameters
- elementId System.String = null
- classes System.Collections.Generic.IEnumerable{System.String} = null
- attributes System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}} = null
public String GetAttribute(params String[] aliases) #Returns:
StringReads the first matching attribute value by alias.
Parameters
- aliases System.String[]
public Boolean HasClass(String className) #Returns:
BooleanChecks whether a class is present using ordinal comparison.
Parameters
- className System.String
public Boolean TryGetAttribute(String name, out String value) #Returns:
BooleanReads an attribute value by key.
Parameters
- name System.String
- value System.String@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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 Boolean IsEmpty { get; } #Whether the set has no id, classes, or key/value attributes.