MarkdownObject Class
Base implementation for a the Markdown syntax tree.
public abstract class MarkdownObject : IMarkdownObject- Implements
Constructors
| Name | Description |
|---|---|
| MarkdownObject() | Initializes a new instance of the MarkdownObject class. |
MarkdownObject()
MarkdownObject.csInitializes a new instance of the MarkdownObject class.
protected MarkdownObject()Properties
| Name | Description |
|---|---|
| Column | Gets or sets the text column this instance was declared (zero-based). |
| Line | Gets or sets the text line this instance was declared (zero-based). |
Column
MarkdownObject.csMethods
| Name | Description |
|---|---|
| ContainsData(object) | Determines whether this instance contains the specified key data. |
| GetData(object) | Gets the associated data for the specified key. |
| RemoveData(object) | Removes the associated data for the specified key. |
| SetData(object, object) | Stores a key/value pair for this instance. |
| ToPositionText() | Gets a string of the location in the text. |
ContainsData(object)
MarkdownObject.csDetermines whether this instance contains the specified key data.
Parameters
keyobject- The key.
Returns
bool true if a data with the key is stored
Exceptions
ArgumentNullException- if key is null
GetData(object)
MarkdownObject.csGets the associated data for the specified key.
Parameters
keyobject- The key.
Returns
object? The associated data or null if none
Exceptions
ArgumentNullException- if key is null
RemoveData(object)
MarkdownObject.csSetData(object, object)
MarkdownObject.csToPositionText()
MarkdownObject.csFields
| Name | Description |
|---|---|
| Span | The source span |
Span
The source span
public SourceSpan Span