Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.ToolStrips Namespace / C1EditorToolStripColorPicker Class
Members Example

In This Topic
    C1EditorToolStripColorPicker Class
    In This Topic
    Represents a toolstrip color picker which performs a command in a linked C1.Win.C1Editor.C1Editor control.
    Object Model
    C1EditorToolStripColorPicker Class
    Syntax
    'Declaration
     
    Public Class C1EditorToolStripColorPicker 
       Inherits C1ToolStripColorPicker
    public class C1EditorToolStripColorPicker : C1ToolStripColorPicker 
    Remarks
    Use this class to add a C1.Win.C1Editor.C1Editor-related color picker to a ToolStrip.
    Example
    The following code example demonstrates how to create a C1EditorToolStripColorPicker and add it to a System.Windows.Forms.ToolStrip.
    C1EditorToolStripColorPicker colorPicker = new C1EditorToolStripColorPicker();
    colorPicker.Command = CommandColorPicker.ForeColor;
    colorPicker.Editor = c1Editor1;
    toolStrip1.Items.Add(colorPicker);
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.ToolStripItem
                System.Windows.Forms.ToolStripDropDownItem
                   System.Windows.Forms.ToolStripSplitButton
                      C1.Win.C1Editor.ToolStrips.C1ToolStripColorPicker
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripColorPicker

    See Also