alexa
menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class FontColorSettings

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    FontColorSettings
    Namespace: Syncfusion.EJ2.BlockEditor
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class FontColorSettings : EJTagHelper

    Constructors

    FontColorSettings()

    Declaration
    public FontColorSettings()

    Properties

    ColorCode

    Specifies custom color codes organized in named groups as key-value pairs. Keys represent color group names (e.g., 'Standard', 'Light', 'Dark'), and values are arrays of hex color codes to display in each group. This allows developers to create branded color palettes with organized color categories for users to choose from.

    Declaration
    public object ColorCode { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Columns

    Specifies the number of columns in the color palette grid layout. This property controls how many color swatches appear per row when using palette mode. Higher values create wider grids with more columns.

    Declaration
    public double Columns { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 10

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Default

    Specifies the default font color to apply when users click the font color button without making a selection. Accepts hex color codes (e.g., '#ff0000' for red). This color is used as the initial selected color in the palette.

    Declaration
    public string Default { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "#ff0000"

    Mode

    Specifies the color display mode for the font color picker interface. Set to 'Palette' to display a predefined grid of colors, or 'Picker' to display a custom color picker widget for RGB/HEX selection.

    Declaration
    public ColorModeType Mode { get; set; }
    Property Value
    Type Description
    ColorModeType

    The default value is ColorModeType.Palette

    ModeSwitcher

    Specifies whether users can toggle between Palette and Picker modes in the font color interface. Set to true to display a mode switcher button that allows users to switch between predefined color palettes and custom color picker. Set to false to lock the interface to a single mode defined by the mode property.

    Declaration
    public bool ModeSwitcher { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved