API Reference
ListItem
List item content; supports plain and task (checklist) items.
Inheritance
- MarkdownObject
- ListItem
Constructors
public ListItem(InlineSequence content) #Creates a plain list item.
Parameters
- content OfficeIMO.Markdown.InlineSequence
Methods
public static ListItem Link(String text, String url, String title = null) #ListItemCreates a link item.
Parameters
- text System.String
- url System.String
- title System.String = null
public static ListItem Task(String text, Boolean done = false) #ListItemCreates a task (checklist) item.
Parameters
- text System.String
- done System.Boolean = false
public static ListItem TaskInlines(InlineSequence content, Boolean done = false) #ListItemCreates a task (checklist) item using inline content.
Parameters
- content OfficeIMO.Markdown.InlineSequence
- Inline content for the list item. When null, an empty sequence is used.
- done System.Boolean = false
- Whether the task should be marked as completed.
public static ListItem Text(String text) #ListItemCreates a plain text item.
Parameters
- text System.String
Inherited Methods
public Void Accept(MarkdownVisitor visitor) #VoidParameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #IEnumerable<MarkdownObject>public IEnumerable<MarkdownObject> AncestorsAndSelf() #IEnumerable<MarkdownObject>public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #IEnumerable<TObject>Type Parameters
- TObject
public IEnumerable<MarkdownObject> Descendants() #IEnumerable<MarkdownObject>public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public InlineSequence Content { get; } #Inlines representing item content.
public List<InlineSequence> AdditionalParagraphs { get; } #Additional paragraphs inside the list item (multi-paragraph list items).
public IReadOnlyList<ParagraphBlock> ParagraphBlocks { get; } #Paragraph blocks owned by this list item. This exposes list-item paragraph content as blocks for AST-style consumers.
public List<IMarkdownBlock> Children { get; } #Nested block content inside the list item (e.g., nested ordered/unordered lists, code blocks).
public IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #Read-only AST-style view of nested child blocks inside the list item.
public IReadOnlyList<IMarkdownBlock> BlockChildren { get; } #Ordered AST-style view of all list-item child blocks, including lead paragraphs.
public Boolean IsTask { get; } #True when rendered as a task item (- [ ] or - [x]).
public Boolean Checked { get; } #Whether the task is checked.
public Int32 Level { get; set; } #Indentation level (0 = top-level). Used for nested lists.
public Boolean ForceLoose { get; set; } #Forces paragraph-wrapped loose rendering even when only the first paragraph and child blocks exist.
Inherited Properties
public MarkdownObject Parent { get; } #public MarkdownDoc Document { get; } #public MarkdownObject Root { get; } #public Nullable<Int32> IndexInParent { get; } #public MarkdownObject PreviousSibling { get; } #public MarkdownObject NextSibling { get; } #public Nullable<MarkdownSourceSpan> SourceSpan { get; set; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #