2 // System.Windows.Forms.ColorDialog.cs
\r
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
\r
7 // (C) Ximian, Inc., 2002
\r
10 using System.Drawing;
\r
12 namespace System.Windows.Forms
\r
15 /// Represents a common dialog box that displays available colors along with controls that allow the user to define custom colors.
\r
18 /// - nothing is implemented
\r
22 public class ColorDialog : CommonDialog
\r
31 bool solidColorOnly;
\r
33 /// --- Constructor ---
\r
34 protected ColorDialog() : base() {
\r
35 allowFullOpen = true;
\r
37 color = Color.Black;
\r
38 customColors = null;
\r
41 solidColorOnly = false;
\r
47 /// --- Properties ---
\r
48 /// following properties are not stubbed out, because they only support .NET framework
\r
49 /// - protected virtual IntPtr Instance {get;}
\r
50 /// - protected virtual int Options {get;}
\r
51 public virtual bool AllowFullOpen {
\r
52 get { return allowFullOpen; }
\r
53 set { allowFullOpen=value; }
\r
56 public virtual bool AnyColor {
\r
57 get { return anyColor; }
\r
58 set { anyColor=value; }
\r
61 public Color Color {
\r
62 get { return color; }
\r
63 set { color=value; }
\r
66 public int[] CustomColors {
\r
67 get { return customColors; }
\r
68 set { customColors=value; }
\r
71 public virtual bool FullOpen {
\r
72 get { return fullOpen; }
\r
73 set { fullOpen=value; }
\r
76 public virtual bool ShowHelp {
\r
77 get { return showHelp; }
\r
78 set { showHelp=value; }
\r
81 public virtual bool SolidColorOnly {
\r
82 get { return solidColorOnly; }
\r
83 set { solidColorOnly=value; }
\r
89 /// --- ColorDialog methods ---
\r
91 public override void Reset() {
\r
92 throw new NotImplementedException ();
\r
96 protected override bool RunDialog(IntPtr hwndOwner) {
\r
97 throw new NotImplementedException ();
\r
101 public override string ToString() {
\r
102 throw new NotImplementedException ();
\r