Tab
A newer version of this page is available. Switch to the current version.

RibbonColorButtonItem Class

A ribbon item used to display the color edit functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class RibbonColorButtonItem :
    RibbonColorButtonItemBase
Public Class RibbonColorButtonItem
    Inherits RibbonColorButtonItemBase

Remarks

The RibbonColorButtonItem object is a ribbon item that implements the color edit functionality. Use the RibbonColorButtonItemBase.Color property to access the current editor color.

The collection of colors displayed in the drop-down window can be accessed by the RibbonColorButtonItemBase.Items property. You can specify the number of columns using the RibbonColorButtonItemBase.ColumnCount property.

When the RibbonColorButtonItem value is changed, the client-side ASPxClientRibbon.CommandExecuted event is raised. You can use the ASPxClientRibbonCommandExecutedEventArgs.item argument property to determine the color item related to the event. The ASPxClientRibbonCommandExecutedEventArgs.parameter argument property returns the new color edit value (e.g., "#ff0000").

ASPxRibbon_ColorItem

<dx:RibbonColorButtonItem Name="Font Color">
     <SmallImage IconID="format_changefontstyle_16x16">
     </SmallImage>
</dx:RibbonColorButtonItem>

To learn more about ribbon item types, see the Item Types topic.

See Also