API Reference
Class
FrontMatterBlock
YAML front matter block rendered at the beginning of the document.
Inheritance
- MarkdownBlock
- FrontMatterBlock
Constructors
public FrontMatterBlock() #Methods
public Entry FindEntry(String key, StringComparison comparison = OrdinalIgnoreCase) #Returns:
EntryFinds a front matter entry by key.
Parameters
- key System.String
- comparison System.StringComparison = OrdinalIgnoreCase
public static FrontMatterBlock FromObject<T>(T data) #Returns:
FrontMatterBlockCreates front matter from an anonymous object or dictionary.
Type Parameters
- T
Parameters
- data System.Object
FromObject``1(``0 data) #Creates front matter from a typed object using public readable properties.
Parameters
- data ``0
public Boolean HasEntry(String key, StringComparison comparison = OrdinalIgnoreCase) #Returns:
BooleanChecks whether the front matter contains an entry with the specified key.
Parameters
- key System.String
- comparison System.StringComparison = OrdinalIgnoreCase
OfficeIMO#Markdown#IMarkdownBlock#RenderHtml() #OfficeIMO#Markdown#IMarkdownBlock#RenderMarkdown() #public Boolean TryGetValue<T>(String key, out T value) #Returns:
BooleanType Parameters
- T
Parameters
- key String
- value T
TryGetValue``1(System.String key, ``0@ value) #Gets a typed front matter value by key when available.
Parameters
- key System.String
- value ``0@
Inherited Methods
public Void Accept(MarkdownVisitor visitor) #Returns:
VoidInherited from MarkdownObject
Parameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public IEnumerable<MarkdownObject> AncestorsAndSelf() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #Returns:
IEnumerable<TObject>Inherited from MarkdownObject
Type Parameters
- TObject
public IEnumerable<MarkdownObject> Descendants() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IReadOnlyList<Entry> Entries { get; } #Structured front matter entries in insertion order.
Inherited Properties
public MarkdownObject Parent { get; } #Inherited from MarkdownObject
public MarkdownDoc Document { get; } #Inherited from MarkdownObject
public MarkdownObject Root { get; } #Inherited from MarkdownObject
public Nullable<Int32> IndexInParent { get; } #Inherited from MarkdownObject
public MarkdownObject PreviousSibling { get; } #Inherited from MarkdownObject
public MarkdownObject NextSibling { get; } #Inherited from MarkdownObject
public Nullable<MarkdownSourceSpan> SourceSpan { get; set; } #Inherited from MarkdownObject
public IReadOnlyList<MarkdownObject> ChildObjects { get; } #Inherited from MarkdownObject