GoDigram for .NET Framework and .NET Core
Northwoods.Go.Draw Namespace / GoColorControl Class
Members
In This Topic
    GoColorControl Class
    In This Topic
    This control provides the basic functionality for letting a user pick a color from palettes of standard colors as well as custom colors, with optional alpha transparency.
    Syntax
    [ToolboxItem(true)]
    [Designer("System.Windows.Forms.Design.UserControlDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)]
    [DesignerCategory("UserControl")]
    [DefaultEvent("Load")]
    [DefaultProperty("Text")]
    [DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [ToolboxItemFilter("System.Windows.Forms")]
    public class GoColorControl : GoPropertyUserControl, IGoPropertyControl  
    Remarks

    A typical use of this control is to add it to a Form, assign the GoPropertyUserControl.View (a Northwoods.Go.GoView) so that this control knows which Northwoods.Go.GoSelection to consider, and assign the Property, PropertyPart, and PropertyChoice values so that this control knows which properties of which objects to modify.

    This control can also be used without a GoPropertyUserControl.View or a GoPropertyUserControl.PropertyModifier, by setting the Color and OldColor properties, and by looking at the value of the Color property after a ColorChanged event.

    See Also