2 // System.Windows.Forms.DataGridTextBoxColumn
\r
5 // stubbed out by Richard Baumann (biochem333@nyc.rr.com)
\r
6 // Dennis Hayes (dennish@Raytek.com)
\r
8 // (C) Ximian, Inc., 2002
\r
10 using System.Drawing;
\r
11 using System.ComponentModel;
\r
12 namespace System.Windows.Forms {
\r
15 // Hosts a TextBox control in a cell of a DataGridColumnStyle for editing strings.
\r
17 public class DataGridTextBoxColumn : DataGridColumnStyle {
\r
20 // --- Constructors/Destructors
\r
23 public DataGridTextBoxColumn() : base()
\r
28 public DataGridTextBoxColumn(PropertyDescriptor prop) : base(prop)
\r
33 public DataGridTextBoxColumn(PropertyDescriptor prop, bool isDefault) : base(prop)
\r
35 // This method is internal to the .NET framework.
\r
39 public DataGridTextBoxColumn(PropertyDescriptor prop, string format) : base(prop)
\r
44 public DataGridTextBoxColumn(PropertyDescriptor prop, string format, bool isDefault) : base(prop)
\r
46 // This method is internal to the .NET framework.
\r
49 // --- Protected Methods
\r
52 protected internal override void Abort(int rowNum)
\r
54 throw new NotImplementedException ();
\r
57 protected internal override bool Commit(CurrencyManager dataSource, int rowNum)
\r
59 throw new NotImplementedException ();
\r
62 protected internal override void ConcedeFocus()
\r
65 base.ConcedeFocus();
\r
68 protected internal override void Edit(CurrencyManager source, int rowNum, Rectangle bounds,
\r
69 bool readOnly, string instantText, bool cellIsVisible) {
\r
71 // This method is internal to the .NET framework.
\r
72 throw new NotImplementedException ();
\r
76 // protected internal virtual void Edit(CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly)
\r
78 // // This method is internal to the .NET framework.
\r
79 // throw new NotImplementedException ();
\r
82 protected internal virtual void Edit(CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, string instantText)
\r
84 // This method is internal to the .NET framework.
\r
88 protected void EndEdit()
\r
90 // This method is internal to the .NET framework.
\r
94 protected internal override void EnterNullValue()
\r
97 base.EnterNullValue();
\r
100 protected internal override int GetMinimumHeight()
\r
102 throw new NotImplementedException ();
\r
105 protected internal override int GetPreferredHeight(Graphics g, object value)
\r
108 throw new NotImplementedException ();
\r
111 protected internal override Size GetPreferredSize(Graphics g, object value)
\r
114 throw new NotImplementedException ();
\r
117 protected void HideEditBox()
\r
122 protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum)
\r
124 // This method is internal to the .NET framework.
\r
128 protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight)
\r
130 // This method is internal to the .NET framework.
\r
134 protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum,
\r
135 Brush backBrush, Brush foreBrush, bool alignToRight) {
\r
137 // This method is internal to the .NET framework.
\r
141 protected void PaintText(Graphics g, Rectangle bounds, string text, bool alignToRight)
\r
146 protected void PaintText(Graphics g, Rectangle textBounds, string text, Brush backBrush, Brush foreBrush, bool alignToRight)
\r
151 protected override void SetDataGridInColumn(DataGrid value)
\r
156 protected internal override void UpdateUI(CurrencyManager source, int rowNum, string instantText)
\r
162 // --- Public Properties
\r
165 public string Format {
\r
167 get { throw new NotImplementedException (); }
\r
168 set { throw new NotImplementedException (); }
\r
171 public IFormatProvider FormatInfo {
\r
173 get { throw new NotImplementedException (); }
\r
174 set { throw new NotImplementedException (); }
\r
177 public override PropertyDescriptor PropertyDescriptor {
\r
181 base.PropertyDescriptor = value;
\r
185 public override bool ReadOnly {
\r
189 return base.ReadOnly;
\r
193 base.ReadOnly = value;
\r
197 public virtual TextBox TextBox {
\r
199 get { throw new NotImplementedException (); }
\r