Class TextContentSettings
Represents type-specific settings for text content items in the SfBlockEditor.
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class TextContentSettings : ContentSettings
Remarks
Assign an instance of TextContentSettings to ContentModel.Properties when
ContentModel.ContentType is Text to control text styling.
Styling options are provided through the Styles property, which exposes a StyleModel containing common text formatting flags and color options.
Examples
Demonstrates applying bold and italic styles to a text content item.
var content = new ContentModel
{
ID = "styled-text",
Type = ContentType.Text,
Content = "Formatted text",
Properties = new TextContentSettings
{
Styles = new StyleModel
{
Bold = true,
Italic = true,
Color = "#333333"
}
}
};
Constructors
TextContentSettings()
Declaration
public TextContentSettings()
Properties
Styles
Gets or sets the styles for the text content
Declaration
public StyleModel Styles { get; set; }
Property Value
| Type |
|---|
| StyleModel |