2 // System.Windows.Forms.DataGridTableStyle
\r
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
\r
7 // (C) Ximian, Inc., 2002
\r
10 using System.ComponentModel;
\r
11 using System.Drawing;
\r
12 using System.Collections;
\r
14 namespace System.Windows.Forms
\r
17 /// Represents the table drawn by the System.Windows.Forms.DataGrid control at run time.
\r
20 /// - no methods are implemented
\r
24 public class DataGridTableStyle : Component
\r
27 // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code:
\r
28 // public static DataGridTableStyle DefaultTableStyle;
\r
30 Color alternatingBackColor;
\r
32 bool columnHeadersVisible;
\r
35 Color gridLineColor;
\r
36 DataGridLineStyle gridLineStyle;
\r
37 Color headerBackColor;
\r
39 Color headerForeColor;
\r
42 int preferredColumnWidth;
\r
43 int preferredRowHeight;
\r
45 bool rowHeadersVisible;
\r
47 Color selectionBackColor;
\r
48 Color selectionForeColor;
\r
54 #region Constructors
\r
56 public DataGridTableStyle() {
\r
58 alternatingBackColor=SystemColors.Window;
\r
59 gridLineStyle=DataGridLineStyle.Solid;
\r
60 rowHeadersVisible=true;
\r
61 throw new NotImplementedException ();
\r
64 // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code:
\r
65 // public DataGridTableStyle(bool isDefaultTableStyle);
\r
68 public DataGridTableStyle(CurrencyManager listManager) : this() {
\r
69 throw new NotImplementedException ();
\r
77 public bool AllowSorting {
\r
78 get { return allowSorting; }
\r
79 set { allowSorting=value; }
\r
82 public Color AlternatingBackColor {
\r
83 get { return alternatingBackColor; }
\r
84 set { alternatingBackColor=value; }
\r
87 public Color BackColor {
\r
88 get { return backColor; }
\r
89 set { backColor=value; }
\r
92 public bool ColumnHeadersVisible {
\r
93 get { return columnHeadersVisible; }
\r
94 set { columnHeadersVisible=value; }
\r
97 public virtual DataGrid DataGrid {
\r
98 get { return dataGrid; }
\r
99 set { dataGrid=value; }
\r
102 public Color ForeColor {
\r
103 get { return foreColor; }
\r
104 set { foreColor=value; }
\r
108 public virtual GridColumnStylesCollection GridColumnStyles {
\r
109 get { throw new NotImplementedException (); }
\r
112 public Color GridLineColor {
\r
113 get { return gridLineColor; }
\r
114 set { gridLineColor=value; }
\r
117 public DataGridLineStyle GridLineStyle {
\r
118 get { return gridLineStyle; }
\r
119 set { gridLineStyle=value; }
\r
122 public Color HeaderBackColor {
\r
123 get { return headerBackColor; }
\r
124 set { headerBackColor=value; }
\r
127 public Font HeaderFont {
\r
128 get { return headerFont; }
\r
129 set { headerFont=value; }
\r
132 public Color HeaderForeColor {
\r
133 get { return headerForeColor; }
\r
134 set { headerForeColor=value; }
\r
137 public Color LinkColor {
\r
138 get { return linkColor; }
\r
139 set { linkColor=value; }
\r
142 // This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
\r
143 // public Color LinkHoverColor {get; set;}
\r
145 public string MappingName {
\r
146 get { return mappingName; }
\r
147 set { mappingName=value; }
\r
150 public int PreferredColumnWidth {
\r
151 get { return preferredColumnWidth; }
\r
152 set { preferredColumnWidth=value; }
\r
155 public int PreferredRowHeight {
\r
156 get { return preferredRowHeight; }
\r
157 set { preferredRowHeight=value; }
\r
160 public virtual bool ReadOnly {
\r
161 get { return allowSorting; }
\r
162 set { allowSorting=value; }
\r
165 public bool RowHeadersVisible {
\r
166 get { return rowHeadersVisible; }
\r
167 set { rowHeadersVisible=value; }
\r
171 public int RowHeaderWidth {
\r
172 get { return rowHeaderWidth; }
\r
173 set { rowHeaderWidth=value; }
\r
176 public Color SelectionBackColor {
\r
177 get { return selectionBackColor; }
\r
178 set { selectionBackColor=value; }
\r
181 public Color SelectionForeColor {
\r
182 get { return selectionForeColor; }
\r
183 set { selectionForeColor=value; }
\r
192 public bool BeginEdit(DataGridColumnStyle gridColumn,int rowNumber) {
\r
193 throw new NotImplementedException ();
\r
197 protected internal virtual DataGridColumnStyle CreateGridColumn(PropertyDescriptor prop) {
\r
198 throw new NotImplementedException ();
\r
202 protected internal virtual DataGridColumnStyle CreateGridColumn(PropertyDescriptor prop,bool isDefault) {
\r
203 throw new NotImplementedException ();
\r
207 protected override void Dispose(bool disposing) {
\r
208 throw new NotImplementedException ();
\r
212 public bool EndEdit(DataGridColumnStyle gridColumn,int rowNumber,bool shouldAbort) {
\r
213 throw new NotImplementedException ();
\r
217 protected virtual void OnAllowSortingChanged(EventArgs e) {
\r
218 throw new NotImplementedException ();
\r
222 protected virtual void OnAlternatingBackColorChanged(EventArgs e) {
\r
223 throw new NotImplementedException ();
\r
227 protected virtual void OnBackColorChanged(EventArgs e) {
\r
228 throw new NotImplementedException ();
\r
232 protected virtual void OnColumnHeadersVisibleChanged(EventArgs e) {
\r
233 throw new NotImplementedException ();
\r
237 protected virtual void OnForeColorChanged(EventArgs e) {
\r
238 throw new NotImplementedException ();
\r
242 protected virtual void OnGridLineColorChanged(EventArgs e) {
\r
243 throw new NotImplementedException ();
\r
247 protected virtual void OnGridLineStyleChanged(EventArgs e) {
\r
248 throw new NotImplementedException ();
\r
252 protected virtual void OnHeaderBackColorChanged(EventArgs e) {
\r
253 throw new NotImplementedException ();
\r
257 protected virtual void OnHeaderFontChanged(EventArgs e) {
\r
258 throw new NotImplementedException ();
\r
262 protected virtual void OnHeaderForeColorChanged(EventArgs e) {
\r
263 throw new NotImplementedException ();
\r
267 protected virtual void OnLinkColorChanged(EventArgs e) {
\r
268 throw new NotImplementedException ();
\r
272 protected virtual void OnLinkHoverColorChanged(EventArgs e) {
\r
273 throw new NotImplementedException ();
\r
277 protected virtual void OnMappingNameChanged(EventArgs e) {
\r
278 throw new NotImplementedException ();
\r
282 protected virtual void OnPreferredColumnWidthChanged(EventArgs e) {
\r
283 throw new NotImplementedException ();
\r
287 protected virtual void OnPreferredRowHeightChanged(EventArgs e) {
\r
288 throw new NotImplementedException ();
\r
292 protected virtual void OnReadOnlyChanged(EventArgs e) {
\r
293 throw new NotImplementedException ();
\r
297 protected virtual void OnRowHeadersVisibleChanged(EventArgs e) {
\r
298 throw new NotImplementedException ();
\r
302 protected virtual void OnRowHeaderWidthChanged(EventArgs e) {
\r
303 throw new NotImplementedException ();
\r
307 protected virtual void OnSelectionBackColorChanged(EventArgs e) {
\r
308 throw new NotImplementedException ();
\r
312 protected virtual void OnSelectionForeColorChanged(EventArgs e) {
\r
313 throw new NotImplementedException ();
\r
317 public void ResetAlternatingBackColor() {
\r
318 throw new NotImplementedException ();
\r
322 public void ResetBackColor() {
\r
323 throw new NotImplementedException ();
\r
327 public void ResetForeColor() {
\r
328 throw new NotImplementedException ();
\r
332 public void ResetGridLineColor() {
\r
333 throw new NotImplementedException ();
\r
337 public void ResetHeaderBackColor() {
\r
338 throw new NotImplementedException ();
\r
342 public void ResetHeaderFont() {
\r
343 throw new NotImplementedException ();
\r
347 public void ResetHeaderForeColor() {
\r
348 throw new NotImplementedException ();
\r
352 public void ResetLinkColor() {
\r
353 throw new NotImplementedException ();
\r
356 /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
\r
357 // public void ResetLinkHoverColor
\r
360 public void ResetSelectionBackColor() {
\r
361 throw new NotImplementedException ();
\r
365 public void ResetSelectionForeColor() {
\r
366 throw new NotImplementedException ();
\r
370 protected virtual bool ShouldSerializeAlternatingBackColor() {
\r
371 throw new NotImplementedException ();
\r
375 protected bool ShouldSerializeBackColor() {
\r
376 throw new NotImplementedException ();
\r
380 protected bool ShouldSerializeForeColor() {
\r
381 throw new NotImplementedException ();
\r
385 protected virtual bool ShouldSerializeGridLineColor() {
\r
386 throw new NotImplementedException ();
\r
390 protected virtual bool ShouldSerializeHeaderBackColor() {
\r
391 throw new NotImplementedException ();
\r
395 protected virtual bool ShouldSerializeHeaderForeColor() {
\r
396 throw new NotImplementedException ();
\r
400 protected virtual bool ShouldSerializeLinkColor() {
\r
401 throw new NotImplementedException ();
\r
404 /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
\r
405 /// protected virtual bool ShouldSerializeLinkHoverColor();
\r
408 protected bool ShouldSerializePreferredRowHeight() {
\r
409 throw new NotImplementedException ();
\r
413 protected bool ShouldSerializeSelectionBackColor() {
\r
414 throw new NotImplementedException ();
\r
418 protected virtual bool ShouldSerializeSelectionForeColor() {
\r
419 throw new NotImplementedException ();
\r
428 public event EventHandler AllowSortingChanged {
\r
430 throw new NotImplementedException ();
\r
433 throw new NotImplementedException ();
\r
438 public event EventHandler AlternatingBackColorChanged {
\r
440 throw new NotImplementedException ();
\r
443 throw new NotImplementedException ();
\r
448 public event EventHandler BackColorChanged {
\r
450 throw new NotImplementedException ();
\r
453 throw new NotImplementedException ();
\r
458 public event EventHandler ColumnHeadersVisibleChanged {
\r
460 throw new NotImplementedException ();
\r
463 throw new NotImplementedException ();
\r
468 public event EventHandler ForeColorChanged {
\r
470 throw new NotImplementedException ();
\r
473 throw new NotImplementedException ();
\r
478 public event EventHandler GridLineColorChanged {
\r
480 throw new NotImplementedException ();
\r
483 throw new NotImplementedException ();
\r
488 public event EventHandler GridLineStyleChanged {
\r
490 throw new NotImplementedException ();
\r
493 throw new NotImplementedException ();
\r
498 public event EventHandler HeaderBackColorChanged {
\r
500 throw new NotImplementedException ();
\r
503 throw new NotImplementedException ();
\r
508 public event EventHandler HeaderFontChanged {
\r
510 throw new NotImplementedException ();
\r
513 throw new NotImplementedException ();
\r
518 public event EventHandler HeaderForeColorChanged {
\r
520 throw new NotImplementedException ();
\r
523 throw new NotImplementedException ();
\r
528 public event EventHandler LinkColorChanged {
\r
530 throw new NotImplementedException ();
\r
533 throw new NotImplementedException ();
\r
537 /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
\r
538 /// public event EventHandler LinkHoverColorChanged;
\r
541 public event EventHandler MappingNameChanged {
\r
543 throw new NotImplementedException ();
\r
546 throw new NotImplementedException ();
\r
551 public event EventHandler PreferredColumnWidthChanged {
\r
553 throw new NotImplementedException ();
\r
556 throw new NotImplementedException ();
\r
561 public event EventHandler PreferredRowHeightChanged {
\r
563 throw new NotImplementedException ();
\r
566 throw new NotImplementedException ();
\r
571 public event EventHandler ReadOnlyChanged {
\r
573 throw new NotImplementedException ();
\r
576 throw new NotImplementedException ();
\r
581 public event EventHandler RowHeadersVisibleChanged {
\r
583 throw new NotImplementedException ();
\r
586 throw new NotImplementedException ();
\r
591 public event EventHandler RowHeaderWidthChanged {
\r
593 throw new NotImplementedException ();
\r
596 throw new NotImplementedException ();
\r
601 public event EventHandler SelectionBackColorChanged {
\r
603 throw new NotImplementedException ();
\r
606 throw new NotImplementedException ();
\r
611 public event EventHandler SelectionForeColorChanged {
\r
613 throw new NotImplementedException ();
\r
616 throw new NotImplementedException ();
\r