[]
        
(Showing Draft Content)

C1.Win.Ribbon.RibbonColorPickerItem

RibbonColorPickerItem Class

Represents a color palette used to build custom color picker elements.

Inheritance
RibbonColorPickerItem
Implements
Namespace: C1.Win.Ribbon
Assembly: C1.Win.Ribbon.4.8.dll
Syntax
public class RibbonColorPickerItem : RibbonItem, IComponent, IDisposable

Constructors

Name Description
RibbonColorPickerItem()

Creates a new instance of RibbonColorPickerItem.

Properties

Name Description
Color

Gets or sets the currently selected color.

ColorsPerRow

Gets or sets the number of color elements that should be displayed per row.

ExpandColors

Gets or sets whether the palette should be expanded to include five additional entries with different brightness for each color in the main palette.

LargeButtons

Gets or sets whether the color picker buttons should be large or small.

OfficeColorPalette

Gets or sets the predefined color palette.

Palette

Gets or sets the array of colors to choose from.

ToolTipColorNames

Gets or sets whether to show the color names in tooltips.

Methods

Name Description
GetColorIndex(Color)

Returns the color index from the palette.

OnClick(EventArgs)

Raises the Click event.

OnSelectedColorChanged(EventArgs)

Raises the SelectedColorChanged event.

ResetColor()
ShouldSerializeColor()

Events

Name Description
Click

Occurs when the item is clicked.

SelectedColorChanged

Occurs when the Color property has changed.