Class BlockBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
BlockBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class BlockBuilder : ControlBuilder
Constructors
BlockBuilder()
Declaration
BlockBuilder(List<Block>)
Declaration
public BlockBuilder(List<Block> collection)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<Block> |
collection |
|
Methods
Add()
Declaration
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
ContentTemplate(Action<Object>)
Declaration
public BlockBuilder ContentTemplate(Action<object> template)
Parameters
| Type |
Name |
Description |
| System.Action<System.Object> |
template |
|
Returns
ContentTemplate(Func<Object, Object>)
Declaration
public BlockBuilder ContentTemplate(Func<object, object> template)
Parameters
| Type |
Name |
Description |
| System.Func<System.Object, System.Object> |
template |
|
Returns
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
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
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
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
Props(Object)
Specifies the type specific properties for the block.
Declaration
public BlockBuilder Props(object props)
Parameters
| Type |
Name |
Description |
| System.Object |
props |
|
Returns
Template(String)
Defines the template content for the block.
Declaration
public BlockBuilder Template(string template)
Parameters
| Type |
Name |
Description |
| System.String |
template |
|
Returns
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
Returns