alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TextContentSettings

    Represents type-specific settings for text content items in the SfBlockEditor.

    Inheritance
    object
    ContentSettings
    TextContentSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved