menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RibbonColorPickerSettingsBuilder - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RibbonColorPickerSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    RibbonColorPickerSettingsBuilder
    Namespace: Syncfusion.EJ2.Ribbon
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class RibbonColorPickerSettingsBuilder : ControlBuilder

    Constructors

    RibbonColorPickerSettingsBuilder()

    Declaration
    public RibbonColorPickerSettingsBuilder()

    RibbonColorPickerSettingsBuilder(RibbonColorPickerSettings)

    Declaration
    public RibbonColorPickerSettingsBuilder(RibbonColorPickerSettings model)
    Parameters
    Type Name Description
    RibbonColorPickerSettings model

    Methods

    BeforeClose(String)

    Event triggers before closing the ColorPicker popup.

    Declaration
    public RibbonColorPickerSettingsBuilder BeforeClose(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    BeforeOpen(String)

    Event triggers before opening the ColorPicker popup.

    Declaration
    public RibbonColorPickerSettingsBuilder BeforeOpen(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    BeforeTileRender(String)

    Event triggers while rendering each palette tile.

    Declaration
    public RibbonColorPickerSettingsBuilder BeforeTileRender(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Change(String)

    Event triggers while changing the colors. It will be triggered based on the showButtons property. If the property is false, the event will be triggered while selecting the colors. If the property is true, the event will be triggered while apply the selected color.

    Declaration
    public RibbonColorPickerSettingsBuilder Change(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Columns(Double)

    Defines the number of columns to be rendered in the color picker palette.

    Declaration
    public RibbonColorPickerSettingsBuilder Columns(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Created(String)

    Event triggers once the color picker is created.

    Declaration
    public RibbonColorPickerSettingsBuilder Created(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    CssClass(String)

    Defines one or more CSS classes to customize the appearance of the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder CssClass(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    EnableOpacity(Boolean)

    Defines whether to enable the opacity option in the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder EnableOpacity(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    HtmlAttributes(Object)

    Specifies additional HTML attributes to be applied to the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder HtmlAttributes(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Label(String)

    Specifies the label text for the overflow item.

    Declaration
    public RibbonColorPickerSettingsBuilder Label(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Mode(Object)

    Defines the rendering mode of the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder Mode(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    ModeSwitcher(Boolean)

    Defines whether to show / hide the mode switcher button in the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder ModeSwitcher(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    NoColor(Boolean)

    Defines whether to enable / disable the palette section in the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder NoColor(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Open(String)

    Event triggers while opening the ColorPicker popup.

    Declaration
    public RibbonColorPickerSettingsBuilder Open(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    PresetColors(Object)

    Defines the custom colors to load in the color picker palette.

    Declaration
    public RibbonColorPickerSettingsBuilder PresetColors(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Select(String)

    Event triggers while selecting the color in picker / palette, when showButtons property is enabled.

    Declaration
    public RibbonColorPickerSettingsBuilder Select(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    ShowButtons(Boolean)

    Defines whether to show / hide the control buttons (apply / cancel) in the color picker.

    Declaration
    public RibbonColorPickerSettingsBuilder ShowButtons(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    RibbonColorPickerSettingsBuilder

    Value(String)

    Specifies the value of the color picker. The value should be a valid hex color code.

    Declaration
    public RibbonColorPickerSettingsBuilder Value(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    RibbonColorPickerSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved