alexa
menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class FontColorSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    FontColorSettingsBuilder
    Namespace: Syncfusion.EJ2.BlockEditor
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class FontColorSettingsBuilder : ControlBuilder

    Constructors

    FontColorSettingsBuilder()

    Declaration
    public FontColorSettingsBuilder()

    FontColorSettingsBuilder(FontColorSettings)

    Declaration
    public FontColorSettingsBuilder(FontColorSettings model)
    Parameters
    Type Name Description
    FontColorSettings model

    Methods

    ColorCode(Object)

    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 FontColorSettingsBuilder ColorCode(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    FontColorSettingsBuilder

    Columns(Double)

    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 FontColorSettingsBuilder Columns(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    FontColorSettingsBuilder

    Default(String)

    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 FontColorSettingsBuilder Default(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    FontColorSettingsBuilder

    Mode(ColorModeType)

    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 FontColorSettingsBuilder Mode(ColorModeType value)
    Parameters
    Type Name Description
    ColorModeType value
    Returns
    Type
    FontColorSettingsBuilder

    ModeSwitcher(Boolean)

    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 FontColorSettingsBuilder ModeSwitcher(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    FontColorSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved