Class Block
Inheritance
Namespace: Syncfusion.EJ2.BlockEditor
Assembly: Syncfusion.EJ2.dll
Syntax
public class Block : EJTagHelper
Constructors
Block()
Declaration
public Block()
Properties
Content
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 object Content { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
| Type |
|---|
| Syncfusion.EJ2.MvcTemplate<System.Object> |
CssClass
Specifies the CSS class applied to the block. Allows custom styling by associating one or more CSS class names with the block.
Declaration
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
Id
Specifies the unique identifier for the block. This property is used to uniquely identify each block.
Declaration
public override string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
Overrides
Indent
Specifies the indent for the block. This property is used to specify indentation for each block.
Declaration
public int Indent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The default value is 0 |
ParentId
Specifies the unique identifier of the parent block. This property is used to establish a hierarchical relationship between parent and child blocks.
Declaration
public string ParentId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
Props
Specifies the type specific properties for the block.
Declaration
public object Props { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |
Template
Defines the template content for the block.
Declaration
public string Template { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
Type
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 BlockType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| BlockType | The default value is BlockType.Paragraph |