Class MdCodeBlock
Represents a code block in Markdown.
Inheritance
System.Object
MdCodeBlock
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Office.Markdown
Assembly: Syncfusion.Markdown.dll
Syntax
public class MdCodeBlock : IMdBlock
Constructors
MdCodeBlock()
Declaration
public MdCodeBlock()
Properties
IsFencedCode
Gets or sets a value indicating whether lines of code are indented or fenced code. Default it is true.
Declaration
public bool IsFencedCode { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Lines
Gets or sets lines of code in code block.
Declaration
public List<string> Lines { get; set; }
Property Value
| Type |
|---|
| System.Collections.Generic.List<System.String> |
Methods
Close()
Closes the code block.
Declaration
public void Close()