Back to Devexpress

RibbonColorButtonItem Class

aspnet-devexpress-dot-web-2c337cc6.md

latest3.3 KB
Original Source

RibbonColorButtonItem Class

A ribbon item used to display the color edit functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class RibbonColorButtonItem :
    RibbonColorButtonItemBase
vb
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”).

aspx
<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.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem RibbonItemBase RibbonButtonItem RibbonColorButtonItemBase RibbonColorButtonItem BootstrapRibbonColorButtonItem

See Also

RibbonColorButtonItem Members

Ribbon

Item Types

DevExpress.Web Namespace