Ribbon for WinForms
カラーピッカー
要素 > リボンアイテム > カラーピッカー

A color picker is a button which when clicked displays a drop-down color palette. The user can select a specific color from the preset palette by clicking the color picker's drop-down arrow.

The Color Picker can be added at design-time using the floating toolbar or Collection Editor. Refer this topic for detailed information.

A ColorPicker can also be added to the C1Ribbon control through the code using the RibbonColorPicker class. This is depicted in the code below:

'リボン項目のColorPickerを追加します
Dim colorPicker As RibbonColorPicker = New RibbonColorPicker("Color Picker", Image.FromFile("images\fontcolor.png"))
colorPicker.DefaultColor = Color.Blue
formatGroup.Items.Add(colorPicker)
// リボン項目のColorPickerを追加します
RibbonColorPicker colorPicker = new RibbonColorPicker("Color Picker", Image.FromFile(@"images\fontcolor.png"));
colorPicker.DefaultColor = Color.Blue;
formatGroup.Items.Add(colorPicker);