alexa
menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class BlockBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    BlockBuilder
    Namespace: Syncfusion.EJ2.BlockEditor
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class BlockBuilder : ControlBuilder

    Constructors

    BlockBuilder()

    Declaration
    public BlockBuilder()

    BlockBuilder(List<Block>)

    Declaration
    public BlockBuilder(List<Block> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<Block> collection

    Methods

    Add()

    Declaration
    public void Add()

    Content(Object)

    Specifies the content of the block, which can vary based on the block type. This property holds the actual content of the block.

    Declaration
    public BlockBuilder Content(object content)
    Parameters
    Type Name Description
    System.Object content
    Returns
    Type
    BlockBuilder

    ContentTemplate(Action<Object>)

    Declaration
    public BlockBuilder ContentTemplate(Action<object> template)
    Parameters
    Type Name Description
    System.Action<System.Object> template
    Returns
    Type
    BlockBuilder

    ContentTemplate(Func<Object, Object>)

    Declaration
    public BlockBuilder ContentTemplate(Func<object, object> template)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Object> template
    Returns
    Type
    BlockBuilder

    CssClass(String)

    Specifies the CSS class applied to the block. Allows custom styling by associating one or more CSS class names with the block.

    Declaration
    public BlockBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type
    BlockBuilder

    Id(String)

    Specifies the unique identifier for the block. This property is used to uniquely identify each block.

    Declaration
    public BlockBuilder Id(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type
    BlockBuilder

    Indent(Int32)

    Specifies the indent for the block. This property is used to specify indentation for each block.

    Declaration
    public BlockBuilder Indent(int indent)
    Parameters
    Type Name Description
    System.Int32 indent
    Returns
    Type
    BlockBuilder

    ParentId(String)

    Specifies the unique identifier of the parent block. This property is used to establish a hierarchical relationship between parent and child blocks.

    Declaration
    public BlockBuilder ParentId(string parentId)
    Parameters
    Type Name Description
    System.String parentId
    Returns
    Type
    BlockBuilder

    Props(Object)

    Specifies the type specific properties for the block.

    Declaration
    public BlockBuilder Props(object props)
    Parameters
    Type Name Description
    System.Object props
    Returns
    Type
    BlockBuilder

    Template(String)

    Defines the template content for the block.

    Declaration
    public BlockBuilder Template(string template)
    Parameters
    Type Name Description
    System.String template
    Returns
    Type
    BlockBuilder

    Type(BlockType)

    Specifies the type of the block, which can be a string or a predefined BlockType. This property determines the type of content the block holds.

    Declaration
    public BlockBuilder Type(BlockType type)
    Parameters
    Type Name Description
    BlockType type
    Returns
    Type
    BlockBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved