GoDigram for .NET Framework and .NET Core
Northwoods.Go.Draw Namespace / GoColorForm Class
Members
In This Topic
    GoColorForm Class
    In This Topic
    Provides a user interface for choosing colors in a Form, either as a modal dialog or as a modeless form.
    Syntax
    [ToolboxItem(false)]
    [ToolboxItemFilter("System.Windows.Forms.Control.TopLevel")]
    [DesignTimeVisible(false)]
    [Designer("System.Windows.Forms.Design.FormDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.ComponentModel.Design.IRootDesigner)]
    [DesignerCategory("Form")]
    [DefaultEvent("Load")]
    [InitializationEvent("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")]
    public class GoColorForm : GoPropertyForm, IGoPropertyControl  
    Remarks

    A typical use is to create an instance of this GoColorForm, assign the GoPropertyForm.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.

    For modeless use, just call Form.Show(). For modal use, just call Form.ShowDialog().

    This control can also be used without a GoPropertyForm.View or a GoPropertyForm.PropertyModifier, by setting the Color and OldColor properties, and by looking at the value of the Color property after a ColorControl.ColorChanged event or after the user clicks OK when modal.

    See Also