alexa
menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class MdCodeBlock

    Represents a code block in Markdown.

    Inheritance
    System.Object
    MdEntity
    MdCodeBlock
    Implements
    IMdBlock
    Inherited Members
    MdEntity.Clone()
    MdEntity.Document
    MdEntity.m_document
    MdEntity.Owner
    Namespace: Syncfusion.Office.Markdown
    Assembly: Syncfusion.Markdown.dll
    Syntax
    public class MdCodeBlock : MdEntity, 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

    CloneImpl()

    Creates a duplicate copy of the MdCodeBlock.

    Declaration
    protected override object CloneImpl()
    Returns
    Type Description
    System.Object

    The reference to the newly created MdCodeBlock instance.

    Overrides
    MdEntity.CloneImpl()

    Close()

    Closes the code block.

    Declaration
    public void Close()

    Implements

    IMdBlock
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved