Class BlockSettings
Abstract base class for all block settings types in the BlockEditor. Derive specific block settings (e.g., ParagraphBlockSettings) from this class.
Inheritance
BlockSettings
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public abstract class BlockSettings
Remarks
It provides a common type for polymorphic block properties. When assigning Properties in BlockModel, use one of the derived classes based on BlockType:
| BlockType | Settings Type |
|---|---|
| BlockType.Paragraph | ParagraphBlockSettings |
| BlockType.Heading | HeadingBlockSettings |
| BlockType.Checklist | ChecklistBlockSettings |
| BlockType.BulletList | BulletListBlockSettings |
| BlockType.NumberedList | NumberedListBlockSettings |
| BlockType.Divider | DividerBlockSettings |
Examples
// Creating paragraph block settings
var paragraphSettings = new ParagraphBlockSettings { Placeholder = "Type here..." };
Constructors
BlockSettings()
Declaration
protected BlockSettings()