Class ContentSettings
Abstract base class for all content settings types in the BlockEditor. Derive specific content settings (e.g., TextContentSettings) from this class.
Inheritance
ContentSettings
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public abstract class ContentSettings
Remarks
It provides a common type for polymorphic content properties. When assigning Properties in ContentModel, use one of the derived classes based on ContentType:
| ContentType | Settings Type |
|---|---|
| ContentType.Text | TextContentSettings |
Examples
// Creating text content settings with styling
var textSettings = new TextContentSettings {
Styles = new StyleModel {
Bold = true,
Color = "#FF0000"
}
};
Constructors
ContentSettings()
Declaration
protected ContentSettings()