alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class ContentSettings

    Abstract base class for all content settings types in the BlockEditor. Derive specific content settings (e.g., TextContentSettings) from this class.

    Inheritance
    object
    ContentSettings
    LabelContentSettings
    LinkContentSettings
    MentionContentSettings
    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 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:

    ContentTypeSettings Type
    ContentType.TextTextContentSettings
    Examples
    // Creating text content settings with styling
    var textSettings = new TextContentSettings { 
        Styles = new StyleModel { 
            Bold = true, 
            Color = "#FF0000" 
        } 
    };

    Constructors

    ContentSettings()

    Declaration
    protected ContentSettings()
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved