-
Notifications
You must be signed in to change notification settings - Fork 13
markdocelements IElementCreator
Denis Akopyan edited this page Mar 6, 2022
·
1 revision
Interface for IElement creators
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph MarkDoc.Elements
MarkDoc.Elements.IElementCreator[[IElementCreator]]
class MarkDoc.Elements.IElementCreator interfaceStyle;
end
| Returns | Name |
|---|---|
IDiagram |
CreateDiagram(string name, string content)Creates a new IDiagram instance |
ILink |
CreateLink(IText content, Lazy<string> reference) |
IList |
CreateList(IEnumerable<IElement> elements, ListType type, string heading, int level) |
IPage |
CreatePage(IEnumerable<IPage> subpages, IEnumerable<IElement> content, string heading, int level) |
ISection |
CreateSection(IEnumerable<IElement> content, string heading, int level) |
ITable |
CreateTable(IEnumerable<IReadOnlyCollection> content, IEnumerable<IText> headings, string heading, int level) |
IText |
CreateText(string content, TextStyle style) |
ITextContent |
JoinTextContent(IEnumerable<ITextContent> content, string delimiter) |
Interface for IElement creators
public abstract IList CreateList(IEnumerable<IElement> elements, ListType type, string heading, int level)| Type | Name | Description |
|---|---|---|
IEnumerable<IElement> |
elements | |
ListType |
type | |
string |
heading | |
int |
level |
public abstract ISection CreateSection(IEnumerable<IElement> content, string heading, int level)| Type | Name | Description |
|---|---|---|
IEnumerable<IElement> |
content | |
string |
heading | |
int |
level |
public abstract ITable CreateTable(IEnumerable<IReadOnlyCollection> content, IEnumerable<IText> headings, string heading, int level)| Type | Name | Description |
|---|---|---|
IEnumerable<IReadOnlyCollection> |
content | |
IEnumerable<IText> |
headings | |
string |
heading | |
int |
level |
public abstract IPage CreatePage(IEnumerable<IPage> subpages, IEnumerable<IElement> content, string heading, int level)| Type | Name | Description |
|---|---|---|
IEnumerable<IPage> |
subpages | |
IEnumerable<IElement> |
content | |
string |
heading | |
int |
level |
public abstract IText CreateText(string content, TextStyle style)| Type | Name | Description |
|---|---|---|
string |
content | |
TextStyle |
style |
public abstract IDiagram CreateDiagram(string name, string content)| Type | Name | Description |
|---|---|---|
string |
name | Diagram name |
string |
content | Diagram data source |
Creates a new IDiagram instance
public abstract ILink CreateLink(IText content, Lazy<string> reference)| Type | Name | Description |
|---|---|---|
IText |
content | |
Lazy<string> |
reference |
public abstract ITextContent JoinTextContent(IEnumerable<ITextContent> content, string delimiter)| Type | Name | Description |
|---|---|---|
IEnumerable<ITextContent> |
content | |
string |
delimiter |
Generated with MarkDoc