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