/
DataGridTextBoxColumn.xml
1249 lines (1142 loc) · 95.9 KB
/
DataGridTextBoxColumn.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="DataGridTextBoxColumn" FullName="System.Windows.Forms.DataGridTextBoxColumn">
<TypeSignature Language="C#" Value="public class DataGridTextBoxColumn : System.Windows.Forms.DataGridColumnStyle" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DataGridTextBoxColumn extends System.Windows.Forms.DataGridColumnStyle" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.DataGridTextBoxColumn" />
<TypeSignature Language="VB.NET" Value="Public Class DataGridTextBoxColumn
Inherits DataGridColumnStyle" />
<TypeSignature Language="F#" Value="type DataGridTextBoxColumn = class
 inherit DataGridColumnStyle" />
<TypeSignature Language="C++ CLI" Value="public ref class DataGridTextBoxColumn : System::Windows::Forms::DataGridColumnStyle" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Forms.DataGridColumnStyle</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Hosts a <see cref="T:System.Windows.Forms.TextBox" /> control in a cell of a <see cref="T:System.Windows.Forms.DataGridColumnStyle" /> for editing strings.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridTextBoxColumn> class derives from the `abstract` class <xref:System.Windows.Forms.DataGridColumnStyle>. At run time, the <xref:System.Windows.Forms.DataGridTextBoxColumn> hosts a <xref:System.Windows.Forms.DataGridTextBox> control that allows users to edit text.
Special properties added to the class include <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A>, and <xref:System.Windows.Forms.DataGridTextBoxColumn.HideEditBox%2A>. These properties allow you to access the hosted <xref:System.Windows.Forms.DataGridTextBox> control and its attributes, and set the format for displaying values.
If the data source is a <xref:System.Data.DataTable> containing <xref:System.Data.DataColumn> objects, the <xref:System.Data.DataColumn.DataType%2A> property of the <xref:System.Data.DataColumn> should be set to a data type that can logically be edited in a text box control. The following data types are automatically associated with a <xref:System.Windows.Forms.DataGridTextBoxColumn> : <xref:System.Byte>, <xref:System.DateTime>, <xref:System.Decimal>, <xref:System.Double>, <xref:System.Int16>, <xref:System.Int32>, <xref:System.Int64>, <xref:System.UInt16>, <xref:System.UInt32>, <xref:System.UInt64>, <xref:System.Single>, and <xref:System.String>.
> [!NOTE]
> The following types are not fully supported by Visual Basic: <xref:System.DateTime>, <xref:System.UInt16>, <xref:System.UInt32>, <xref:System.UInt64>, and <xref:System.TimeSpan>. (Operators are not allowed.)
## Examples
The following example creates a <xref:System.Windows.Forms.DataGridTextBoxColumn> and adds it to the <xref:System.Windows.Forms.GridColumnStylesCollection> of a <xref:System.Windows.Forms.DataGrid>. To run this code example, paste it into a form that has a <xref:System.Windows.Forms.DataGrid> named `dataGrid1` and call it from the constructor of the <xref:System.Windows.Forms.Form>.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn1 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Overview/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn1 Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.DataGridBoolColumn" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
<altmember cref="T:System.Data.DataColumn" />
<altmember cref="P:System.Data.DataColumn.DataType" />
<altmember cref="T:System.Windows.Forms.DataGrid" />
<altmember cref="T:System.Windows.Forms.DataGridTextBox" />
<altmember cref="T:System.Windows.Forms.TextBox" />
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DataGridTextBoxColumn ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 DataGridTextBoxColumn();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example creates a <xref:System.Windows.Forms.DataGridTextBoxColumn> and adds it to the <xref:System.Windows.Forms.GridColumnStylesCollection> collection.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn1 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Overview/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn1 Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Data.DataColumn" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
<altmember cref="T:System.Windows.Forms.DataGrid" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DataGridTextBoxColumn (System.ComponentModel.PropertyDescriptor prop);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.PropertyDescriptor prop) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.#ctor(System.ComponentModel.PropertyDescriptor)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (prop As PropertyDescriptor)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.DataGridTextBoxColumn : System.ComponentModel.PropertyDescriptor -> System.Windows.Forms.DataGridTextBoxColumn" Usage="new System.Windows.Forms.DataGridTextBoxColumn prop" />
<MemberSignature Language="C++ CLI" Value="public:
 DataGridTextBoxColumn(System::ComponentModel::PropertyDescriptor ^ prop);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="prop" Type="System.ComponentModel.PropertyDescriptor" />
</Parameters>
<Docs>
<param name="prop">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> for the column with which the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> will be associated.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class with a specified <see cref="T:System.ComponentModel.PropertyDescriptor" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridColumnStyle> uses a <xref:System.ComponentModel.PropertyDescriptor> to determine the type of data displayed in the column. To return a <xref:System.ComponentModel.PropertyDescriptorCollection>, use the <xref:System.Windows.Forms.BindingManagerBase.GetItemProperties%2A> method of the <xref:System.Windows.Forms.BindingManagerBase> class.
## Examples
The following example creates a <xref:System.Windows.Forms.DataGridTextBoxColumn> and adds it to the <xref:System.Windows.Forms.GridColumnStylesCollection> collection.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn2 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/.ctor/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.DataGridTextBoxColumn2 Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Data.DataColumn" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
<altmember cref="T:System.Windows.Forms.DataGrid" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DataGridTextBoxColumn (System.ComponentModel.PropertyDescriptor prop, bool isDefault);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.PropertyDescriptor prop, bool isDefault) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.#ctor(System.ComponentModel.PropertyDescriptor,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (prop As PropertyDescriptor, isDefault As Boolean)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.DataGridTextBoxColumn : System.ComponentModel.PropertyDescriptor * bool -> System.Windows.Forms.DataGridTextBoxColumn" Usage="new System.Windows.Forms.DataGridTextBoxColumn (prop, isDefault)" />
<MemberSignature Language="C++ CLI" Value="public:
 DataGridTextBoxColumn(System::ComponentModel::PropertyDescriptor ^ prop, bool isDefault);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="prop" Type="System.ComponentModel.PropertyDescriptor" />
<Parameter Name="isDefault" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="prop">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to be associated with the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" />.</param>
<param name="isDefault">Specifies whether the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> is a default column.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class using the specified <see cref="T:System.ComponentModel.PropertyDescriptor" />. Specifies whether the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> is a default column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridColumnStyle> uses a <xref:System.ComponentModel.PropertyDescriptor> to determine the type of data displayed in the column. To return a <xref:System.ComponentModel.PropertyDescriptorCollection>, use the <xref:System.Windows.Forms.BindingManagerBase.GetItemProperties%2A> method of the <xref:System.Windows.Forms.BindingManagerBase> class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DataGridTextBoxColumn (System.ComponentModel.PropertyDescriptor prop, string format);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.PropertyDescriptor prop, string format) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.#ctor(System.ComponentModel.PropertyDescriptor,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (prop As PropertyDescriptor, format As String)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.DataGridTextBoxColumn : System.ComponentModel.PropertyDescriptor * string -> System.Windows.Forms.DataGridTextBoxColumn" Usage="new System.Windows.Forms.DataGridTextBoxColumn (prop, format)" />
<MemberSignature Language="C++ CLI" Value="public:
 DataGridTextBoxColumn(System::ComponentModel::PropertyDescriptor ^ prop, System::String ^ format);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="prop" Type="System.ComponentModel.PropertyDescriptor" />
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="prop">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> for the column with which the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> will be associated.</param>
<param name="format">The format used to format the column values.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class with the specified <see cref="T:System.ComponentModel.PropertyDescriptor" /> and format.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this constructor to create a custom format for the displayed data.
The <xref:System.Windows.Forms.DataGridColumnStyle> uses a <xref:System.ComponentModel.PropertyDescriptor> to determine the type of data displayed in the column. To return a <xref:System.ComponentModel.PropertyDescriptorCollection>, use the <xref:System.Windows.Forms.BindingManagerBase.GetItemProperties%2A> method of the <xref:System.Windows.Forms.BindingManagerBase> class.
For more information about formatting characters, see [Formatting Types](/dotnet/standard/base-types/formatting-types) and [Custom Date and Time Format Strings](/dotnet/standard/base-types/custom-date-and-time-format-strings).
## Examples
The following code example demonstrates the use of this member.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/DataGridTextBoxColumn_DataGridTextBoxColumn_2/CPP/datagridtextboxcolumn_2.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/.ctor/datagridtextboxcolumn_datagridtextboxcolumn_2.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/DataGridTextBoxColumn_DataGridTextBoxColumn_2/VB/datagridtextboxcolumn_datagridtextboxcolumn_2.vb" id="Snippet2":::
]]></format>
</remarks>
<altmember cref="T:System.Data.DataColumn" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
<altmember cref="T:System.Windows.Forms.DataGrid" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DataGridTextBoxColumn (System.ComponentModel.PropertyDescriptor prop, string format, bool isDefault);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.PropertyDescriptor prop, string format, bool isDefault) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.#ctor(System.ComponentModel.PropertyDescriptor,System.String,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (prop As PropertyDescriptor, format As String, isDefault As Boolean)" />
<MemberSignature Language="F#" Value="new System.Windows.Forms.DataGridTextBoxColumn : System.ComponentModel.PropertyDescriptor * string * bool -> System.Windows.Forms.DataGridTextBoxColumn" Usage="new System.Windows.Forms.DataGridTextBoxColumn (prop, format, isDefault)" />
<MemberSignature Language="C++ CLI" Value="public:
 DataGridTextBoxColumn(System::ComponentModel::PropertyDescriptor ^ prop, System::String ^ format, bool isDefault);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="prop" Type="System.ComponentModel.PropertyDescriptor" />
<Parameter Name="format" Type="System.String" />
<Parameter Name="isDefault" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="prop">The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to be associated with the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" />.</param>
<param name="format">The format used.</param>
<param name="isDefault">Specifies whether the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> is the default column.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Forms.DataGridTextBoxColumn" /> class with a specified <see cref="T:System.ComponentModel.PropertyDescriptor" /> and format. Specifies whether the column is the default column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridColumnStyle> uses a <xref:System.ComponentModel.PropertyDescriptor> to determine the type of data displayed in the column. To return a <xref:System.ComponentModel.PropertyDescriptorCollection>, use the <xref:System.Windows.Forms.BindingManagerBase.GetItemProperties%2A> method of the <xref:System.Windows.Forms.BindingManagerBase> class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Abort">
<MemberSignature Language="C#" Value="protected internal override void Abort (int rowNum);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Abort(int32 rowNum) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Abort(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Abort (rowNum As Integer)" />
<MemberSignature Language="F#" Value="override this.Abort : int -> unit" Usage="dataGridTextBoxColumn.Abort rowNum" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Abort(int rowNum);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="rowNum" Type="System.Int32" />
</Parameters>
<Docs>
<param name="rowNum">The number of the row in which an edit operation is being interrupted.</param>
<summary>Initiates a request to interrupt an edit procedure.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method rolls back any change made to the column and invokes the <xref:System.Windows.Forms.DataGridTextBoxColumn.HideEditBox%2A> and <xref:System.Windows.Forms.DataGridTextBoxColumn.EndEdit%2A> methods.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
</Docs>
</Member>
<Member MemberName="Commit">
<MemberSignature Language="C#" Value="protected internal override bool Commit (System.Windows.Forms.CurrencyManager dataSource, int rowNum);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance bool Commit(class System.Windows.Forms.CurrencyManager dataSource, int32 rowNum) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Commit(System.Windows.Forms.CurrencyManager,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Function Commit (dataSource As CurrencyManager, rowNum As Integer) As Boolean" />
<MemberSignature Language="F#" Value="override this.Commit : System.Windows.Forms.CurrencyManager * int -> bool" Usage="dataGridTextBoxColumn.Commit (dataSource, rowNum)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override bool Commit(System::Windows::Forms::CurrencyManager ^ dataSource, int rowNum);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="dataSource" Type="System.Windows.Forms.CurrencyManager" />
<Parameter Name="rowNum" Type="System.Int32" />
</Parameters>
<Docs>
<param name="dataSource">The <see cref="T:System.Windows.Forms.CurrencyManager" /> of the <see cref="T:System.Windows.Forms.DataGrid" /> control the column belongs to.</param>
<param name="rowNum">The number of the edited row.</param>
<summary>Initiates a request to complete an editing procedure.</summary>
<returns>
<see langword="true" /> if the value was successfully committed; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The method checks to ensure that an edit is indeed occurring. If so, it formats the value appropriately. If the value is `null`, the method enters <xref:System.Convert.DBNull> into the column; otherwise, it uses the <xref:System.Windows.Forms.DataGridColumnStyle.SetColumnValueAtRow%2A> method to commit the value.
The method is called by the <xref:System.Windows.Forms.DataGrid> when an editing operation is committed.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Abort(System.Int32)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<altmember cref="T:System.Windows.Forms.DataGrid" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
</Docs>
</Member>
<Member MemberName="ConcedeFocus">
<MemberSignature Language="C#" Value="protected internal override void ConcedeFocus ();" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void ConcedeFocus() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.ConcedeFocus" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub ConcedeFocus ()" />
<MemberSignature Language="F#" Value="override this.ConcedeFocus : unit -> unit" Usage="dataGridTextBoxColumn.ConcedeFocus " />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void ConcedeFocus();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Informs the column that the focus is being conceded.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
In this overridden method, the <xref:System.Windows.Forms.TextBox> control hosted by the <xref:System.Windows.Forms.DataGridTextBoxColumn> is hidden.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Edit">
<MemberSignature Language="C#" Value="protected internal override void Edit (System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible);" FrameworkAlternate="netframework-1.1" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Edit(class System.Windows.Forms.CurrencyManager source, int32 rowNum, valuetype System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible) cil managed" FrameworkAlternate="netframework-1.1" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Edit (source As CurrencyManager, rowNum As Integer, bounds As Rectangle, readOnly As Boolean, instantText As String, cellIsVisible As Boolean)" FrameworkAlternate="netframework-1.1" />
<MemberSignature Language="F#" Value="override this.Edit : System.Windows.Forms.CurrencyManager * int * System.Drawing.Rectangle * bool * string * bool -> unit" Usage="dataGridTextBoxColumn.Edit (source, rowNum, bounds, readOnly, instantText, cellIsVisible)" FrameworkAlternate="netframework-1.1" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Edit(System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Rectangle bounds, bool readOnly, System::String ^ instantText, bool cellIsVisible);" FrameworkAlternate="netframework-1.1" />
<MemberSignature Language="C#" Value="protected internal override void Edit (System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible);" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Edit(class System.Windows.Forms.CurrencyManager source, int32 rowNum, valuetype System.Drawing.Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible) cil managed" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Edit (source As CurrencyManager, rowNum As Integer, bounds As Rectangle, readOnly As Boolean, displayText As String, cellIsVisible As Boolean)" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<MemberSignature Language="F#" Value="override this.Edit : System.Windows.Forms.CurrencyManager * int * System.Drawing.Rectangle * bool * string * bool -> unit" Usage="dataGridTextBoxColumn.Edit (source, rowNum, bounds, readOnly, displayText, cellIsVisible)" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Edit(System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Rectangle bounds, bool readOnly, System::String ^ displayText, bool cellIsVisible);" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="source" Type="System.Windows.Forms.CurrencyManager" Index="0" />
<Parameter Name="rowNum" Type="System.Int32" Index="1" />
<Parameter Name="bounds" Type="System.Drawing.Rectangle" Index="2" />
<Parameter Name="readOnly" Type="System.Boolean" Index="3" />
<Parameter Name="instantText" Type="System.String" Index="4" FrameworkAlternate="netframework-1.1" />
<Parameter Name="displayText" Type="System.String" Index="4" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0" />
<Parameter Name="cellIsVisible" Type="System.Boolean" Index="5" />
</Parameters>
<Docs>
<param name="source">The <see cref="T:System.Windows.Forms.CurrencyManager" /> of the <see cref="T:System.Windows.Forms.DataGrid" /> control the column belongs to.</param>
<param name="rowNum">The row number in this column being edited.</param>
<param name="bounds">The bounding <see cref="T:System.Drawing.Rectangle" /> in which the control is to be sited.</param>
<param name="readOnly">A value indicating whether the column is a read-only. <see langword="true" /> if the value is read-only; otherwise, <see langword="false" />.</param>
<param name="instantText">The text to display in the control.</param>
<param name="displayText">The text to display in the control.</param>
<param name="cellIsVisible">A value indicating whether the cell is visible. <see langword="true" /> if the cell is visible; otherwise, <see langword="false" />.</param>
<summary>Prepares a cell for editing.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridColumnStyle.Edit%2A> sites a <xref:System.Windows.Forms.TextBox> control on the grid at the location of the cell being edited. The method is called by the <xref:System.Windows.Forms.DataGrid> class's <xref:System.Windows.Forms.DataGrid.BeginEdit%2A> method when an editing operation is about to begin.
## Examples
The following example uses the <xref:System.Windows.Forms.DataGridTextBoxColumn.Edit%2A> method to change the text of a clicked cell in the <xref:System.Windows.Forms.DataGrid> control.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.Edit Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Edit/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.Edit Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.DataGrid" />
<altmember cref="T:System.Windows.Forms.DataGridColumnStyle" />
<altmember cref="T:System.Windows.Forms.CurrencyManager" />
</Docs>
</Member>
<Member MemberName="EndEdit">
<MemberSignature Language="C#" Value="protected void EndEdit ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void EndEdit() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.EndEdit" />
<MemberSignature Language="VB.NET" Value="Protected Sub EndEdit ()" />
<MemberSignature Language="F#" Value="member this.EndEdit : unit -> unit" Usage="dataGridTextBoxColumn.EndEdit " />
<MemberSignature Language="C++ CLI" Value="protected:
 void EndEdit();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Ends an edit operation on the <see cref="T:System.Windows.Forms.DataGridColumnStyle" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
To edit the value of a cell, call the <xref:System.Data.DataRow> object's <xref:System.Data.DataRow.BeginEdit%2A> before changing the value. You must invoke the <xref:System.Data.DataRow.AcceptChanges%2A> method on both the <xref:System.Data.DataRow> and <xref:System.Data.DataTable> objects before the change is committed.
## Examples
The following example invokes the <xref:System.Windows.Forms.DataGridTextBoxColumn.EndEdit%2A> method before editing a column's value.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.EndEdit Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="EnterNullValue">
<MemberSignature Language="C#" Value="protected internal override void EnterNullValue ();" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void EnterNullValue() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.EnterNullValue" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub EnterNullValue ()" />
<MemberSignature Language="F#" Value="override this.EnterNullValue : unit -> unit" Usage="dataGridTextBoxColumn.EnterNullValue " />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void EnterNullValue();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Enters a <see cref="F:System.DBNull.Value" /> in the column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Enters the <xref:System.Windows.Forms.DataGridColumnStyle.NullText%2A> value into the cell.
## Examples
The following example tests a <xref:System.Windows.Forms.DataGridColumnStyle> to determine its column type. If the column is a <xref:System.Windows.Forms.DataGridTextBoxColumn>, and the <xref:System.Data.DataColumn> allows `null` values, then the <xref:System.Windows.Forms.DataGridColumnStyle.NullText%2A> property is set and the <xref:System.Windows.Forms.DataGridTextBoxColumn.EnterNullValue%2A> method invoked.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.EnterNullValue Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Abort(System.Int32)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Commit(System.Windows.Forms.CurrencyManager,System.Int32)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<altmember cref="P:System.Windows.Forms.DataGridColumnStyle.NullText" />
</Docs>
</Member>
<Member MemberName="Format">
<MemberSignature Language="C#" Value="public string Format { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Format" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.DataGridTextBoxColumn.Format" />
<MemberSignature Language="VB.NET" Value="Public Property Format As String" />
<MemberSignature Language="F#" Value="member this.Format : string with get, set" Usage="System.Windows.Forms.DataGridTextBoxColumn.Format" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Format { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-1.1">
<AttributeName Language="C#">[System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0">
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(null)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(null)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5">
<AttributeName Language="C#">[System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0">
<AttributeName Language="C#">[System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleFormatEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the character(s) that specify how text is formatted.</summary>
<value>The character or characters that specify how text is formatted.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property specifies how values are displayed in the column. For example, set the property to "c" to specify that the values will be formatted as the local currency. The <xref:System.Globalization.CultureInfo> for the computer is used to determine the actual currency format. The values are automatically unformatted to the native type when data is changed.
For more information about formatting characters, see [Formatting Types](/dotnet/standard/base-types/formatting-types) and [Custom Date and Time Format Strings](/dotnet/standard/base-types/custom-date-and-time-format-strings).
The format you apply should be appropriate to the data type. For example, if the data is numeric in nature use one of the numeric format strings.
You can change the <xref:System.Globalization.CultureInfo> for a <xref:System.Windows.Forms.DataGridTextBoxColumn> by setting the <xref:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo%2A> property to a new <xref:System.Globalization.CultureInfo> instance constructed with an appropriate culture ID.
To set the <xref:System.Globalization.CultureInfo> for the application, set the <xref:System.Windows.Forms.Application.CurrentCulture%2A> property of the <xref:System.Windows.Forms.Application> object to a new <xref:System.Globalization.CultureInfo> instance constructed with an appropriate culture ID.
## Examples
The following example creates a new <xref:System.Globalization.CultureInfo> object and assigns it to the <xref:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo%2A> property of a <xref:System.Windows.Forms.DataGridTextBoxColumn> object. The example also sets the <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property to "c" to specify that the column should display values as currency.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/DataGridTextBoxColumn Format/CPP/datagridtextboxcolumn format.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Format/datagridtextboxcolumn format.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/DataGridTextBoxColumn Format/VB/datagridtextboxcolumn format.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Globalization.CultureInfo" />
<altmember cref="P:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo" />
</Docs>
</Member>
<Member MemberName="FormatInfo">
<MemberSignature Language="C#" Value="public IFormatProvider FormatInfo { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.IFormatProvider FormatInfo" />
<MemberSignature Language="DocId" Value="P:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo" />
<MemberSignature Language="VB.NET" Value="Public Property FormatInfo As IFormatProvider" />
<MemberSignature Language="F#" Value="member this.FormatInfo : IFormatProvider with get, set" Usage="System.Windows.Forms.DataGridTextBoxColumn.FormatInfo" />
<MemberSignature Language="C++ CLI" Value="public:
 property IFormatProvider ^ FormatInfo { IFormatProvider ^ get(); void set(IFormatProvider ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IFormatProvider</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the culture specific information used to determine how values are formatted.</summary>
<value>An object that implements the <see cref="T:System.IFormatProvider" /> interface, such as the <see cref="T:System.Globalization.CultureInfo" /> class.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When setting the <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property to one of the formatting characters, the <xref:System.Windows.Forms.DataGridTextBoxColumn> uses the information provided by the <xref:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo%2A> property to further specify what cultural-specific formatting to use. For example, when the <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property is set to the format character "c" (for currency), you can further specify that the symbol for the lira be used. To do this, create a new <xref:System.Globalization.CultureInfo> object with the locale ID for Italy, and set the <xref:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo%2A> property to the new <xref:System.Globalization.CultureInfo> object.
For more information about formatting characters, see [Formatting Types](/dotnet/standard/base-types/formatting-types) and [Custom Date and Time Format Strings](/dotnet/standard/base-types/custom-date-and-time-format-strings).
## Examples
The following example creates a new <xref:System.Globalization.CultureInfo> object and assigns it to the <xref:System.Windows.Forms.DataGridTextBoxColumn.FormatInfo%2A> property of a <xref:System.Windows.Forms.DataGridTextBoxColumn> object. The example also sets the <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property to "c" to specify that the column should display values as currency.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/DataGridTextBoxColumn Format/CPP/datagridtextboxcolumn format.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Format/datagridtextboxcolumn format.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/DataGridTextBoxColumn Format/VB/datagridtextboxcolumn format.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Globalization.CultureInfo" />
<altmember cref="P:System.Windows.Forms.DataGridTextBoxColumn.Format" />
</Docs>
</Member>
<Member MemberName="GetMinimumHeight">
<MemberSignature Language="C#" Value="protected internal override int GetMinimumHeight ();" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance int32 GetMinimumHeight() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.GetMinimumHeight" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Function GetMinimumHeight () As Integer" />
<MemberSignature Language="F#" Value="override this.GetMinimumHeight : unit -> int" Usage="dataGridTextBoxColumn.GetMinimumHeight " />
<MemberSignature Language="C++ CLI" Value="protected public:
 override int GetMinimumHeight();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets the height of a cell in a <see cref="T:System.Windows.Forms.DataGridColumnStyle" />.</summary>
<returns>The height of a cell.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value returned by <xref:System.Windows.Forms.DataGridTextBoxColumn.GetMinimumHeight%2A> is calculated by adding the size of the column's font plus a margin value.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.GetPreferredHeight(System.Drawing.Graphics,System.Object)" />
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.GetPreferredSize(System.Drawing.Graphics,System.Object)" />
</Docs>
</Member>
<Member MemberName="GetPreferredHeight">
<MemberSignature Language="C#" Value="protected internal override int GetPreferredHeight (System.Drawing.Graphics g, object value);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance int32 GetPreferredHeight(class System.Drawing.Graphics g, object value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.GetPreferredHeight(System.Drawing.Graphics,System.Object)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Function GetPreferredHeight (g As Graphics, value As Object) As Integer" />
<MemberSignature Language="F#" Value="override this.GetPreferredHeight : System.Drawing.Graphics * obj -> int" Usage="dataGridTextBoxColumn.GetPreferredHeight (g, value)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override int GetPreferredHeight(System::Drawing::Graphics ^ g, System::Object ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="g">A <see cref="T:System.Drawing.Graphics" /> object used to draw shapes on the screen.</param>
<param name="value">The value to draw.</param>
<summary>Gets the height to be used in for automatically resizing columns.</summary>
<returns>The height the cells automatically resize to.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example uses the <xref:System.Windows.Forms.DataGridTextBoxColumn.GetPreferredHeight%2A> to return the height a column is automatically resized to.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.GetPreferredHeight Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/GetPreferredHeight/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.GetPreferredHeight Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.GetPreferredSize(System.Drawing.Graphics,System.Object)" />
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.GetMinimumHeight" />
</Docs>
</Member>
<Member MemberName="GetPreferredSize">
<MemberSignature Language="C#" Value="protected internal override System.Drawing.Size GetPreferredSize (System.Drawing.Graphics g, object value);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance valuetype System.Drawing.Size GetPreferredSize(class System.Drawing.Graphics g, object value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.GetPreferredSize(System.Drawing.Graphics,System.Object)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Function GetPreferredSize (g As Graphics, value As Object) As Size" />
<MemberSignature Language="F#" Value="override this.GetPreferredSize : System.Drawing.Graphics * obj -> System.Drawing.Size" Usage="dataGridTextBoxColumn.GetPreferredSize (g, value)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override System::Drawing::Size GetPreferredSize(System::Drawing::Graphics ^ g, System::Object ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Size</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="g">A <see cref="T:System.Drawing.Graphics" /> object used to draw shapes on the screen.</param>
<param name="value">The value to draw.</param>
<summary>Returns the optimum width and height of the cell in a specified row relative to the specified value.</summary>
<returns>A <see cref="T:System.Drawing.Size" /> that contains the dimensions of the cell.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The optimum width and height is calculated by measuring the string size, taking into account its font and attributes, and adding margin values.
## Examples
The following example uses <xref:System.Windows.Forms.DataGridTextBoxColumn.GetPreferredSize%2A> to return a <xref:System.Drawing.Size>.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.GetPreferredSize Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/GetPreferredSize/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.GetPreferredSize Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.GetPreferredHeight(System.Drawing.Graphics,System.Object)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.GetMinimumHeight" />
<altmember cref="T:System.Drawing.Graphics" />
<altmember cref="T:System.Drawing.Size" />
</Docs>
</Member>
<Member MemberName="HideEditBox">
<MemberSignature Language="C#" Value="protected void HideEditBox ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void HideEditBox() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.HideEditBox" />
<MemberSignature Language="VB.NET" Value="Protected Sub HideEditBox ()" />
<MemberSignature Language="F#" Value="member this.HideEditBox : unit -> unit" Usage="dataGridTextBoxColumn.HideEditBox " />
<MemberSignature Language="C++ CLI" Value="protected:
 void HideEditBox();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Hides the <see cref="T:System.Windows.Forms.DataGridTextBox" /> control and moves the focus to the <see cref="T:System.Windows.Forms.DataGrid" /> control.</summary>
<remarks>To be added.</remarks>
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.Abort(System.Int32)" />
<altmember cref="T:System.Windows.Forms.TextBox" />
</Docs>
</Member>
<MemberGroup MemberName="Paint">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Paints the column in the <see cref="T:System.Windows.Forms.DataGrid" /> control.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Paint">
<MemberSignature Language="C#" Value="protected internal override void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Paint(class System.Drawing.Graphics g, valuetype System.Drawing.Rectangle bounds, class System.Windows.Forms.CurrencyManager source, int32 rowNum) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Paint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.CurrencyManager,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer)" />
<MemberSignature Language="F#" Value="override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int -> unit" Usage="dataGridTextBoxColumn.Paint (g, bounds, source, rowNum)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="bounds" Type="System.Drawing.Rectangle" />
<Parameter Name="source" Type="System.Windows.Forms.CurrencyManager" />
<Parameter Name="rowNum" Type="System.Int32" />
</Parameters>
<Docs>
<param name="g">The <see cref="T:System.Drawing.Graphics" /> object to draw to.</param>
<param name="bounds">The bounding <see cref="T:System.Drawing.Rectangle" /> to paint into.</param>
<param name="source">The <see cref="T:System.Windows.Forms.CurrencyManager" /> of the <see cref="T:System.Windows.Forms.DataGrid" /> the that contains the column.</param>
<param name="rowNum">The number of the row in the underlying data table.</param>
<summary>Paints the a <see cref="T:System.Windows.Forms.DataGridColumnStyle" /> with the specified <see cref="T:System.Drawing.Graphics" />, <see cref="T:System.Drawing.Rectangle" />, <see cref="T:System.Windows.Forms.CurrencyManager" />, and row number.</summary>
<remarks>To be added.</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,System.String,System.Boolean)" />
</Docs>
</Member>
<Member MemberName="Paint">
<MemberSignature Language="C#" Value="protected internal override void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, bool alignToRight);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Paint(class System.Drawing.Graphics g, valuetype System.Drawing.Rectangle bounds, class System.Windows.Forms.CurrencyManager source, int32 rowNum, bool alignToRight) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Paint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.CurrencyManager,System.Int32,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, alignToRight As Boolean)" />
<MemberSignature Language="F#" Value="override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * bool -> unit" Usage="dataGridTextBoxColumn.Paint (g, bounds, source, rowNum, alignToRight)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, bool alignToRight);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="bounds" Type="System.Drawing.Rectangle" />
<Parameter Name="source" Type="System.Windows.Forms.CurrencyManager" />
<Parameter Name="rowNum" Type="System.Int32" />
<Parameter Name="alignToRight" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="g">The <see cref="T:System.Drawing.Graphics" /> object to draw to.</param>
<param name="bounds">The bounding <see cref="T:System.Drawing.Rectangle" /> to paint into.</param>
<param name="source">The <see cref="T:System.Windows.Forms.CurrencyManager" /> of the <see cref="T:System.Windows.Forms.DataGrid" /> the that contains the column.</param>
<param name="rowNum">The number of the row in the underlying data table.</param>
<param name="alignToRight">A value indicating whether to align the column's content to the right. <see langword="true" /> if the content should be aligned to the right; otherwise, <see langword="false" />.</param>
<summary>Paints a <see cref="T:System.Windows.Forms.DataGridColumnStyle" /> with the specified <see cref="T:System.Drawing.Graphics" />, <see cref="T:System.Drawing.Rectangle" />, <see cref="T:System.Windows.Forms.CurrencyManager" />, row number, and alignment.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridTextBoxColumn.Paint%2A> method uses the <xref:System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow%2A> to determine the value to draw in the cell. The <xref:System.Windows.Forms.DataGridTextBoxColumn.PaintText%2A> method is called to draw the cell and its contents.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,System.String,System.Boolean)" />
</Docs>
</Member>
<Member MemberName="Paint">
<MemberSignature Language="C#" Value="protected internal override void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Paint(class System.Drawing.Graphics g, valuetype System.Drawing.Rectangle bounds, class System.Windows.Forms.CurrencyManager source, int32 rowNum, class System.Drawing.Brush backBrush, class System.Drawing.Brush foreBrush, bool alignToRight) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.Paint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Brush,System.Drawing.Brush,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)" />
<MemberSignature Language="F#" Value="override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * System.Drawing.Brush * System.Drawing.Brush * bool -> unit" Usage="dataGridTextBoxColumn.Paint (g, bounds, source, rowNum, backBrush, foreBrush, alignToRight)" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="bounds" Type="System.Drawing.Rectangle" />
<Parameter Name="source" Type="System.Windows.Forms.CurrencyManager" />
<Parameter Name="rowNum" Type="System.Int32" />
<Parameter Name="backBrush" Type="System.Drawing.Brush" />
<Parameter Name="foreBrush" Type="System.Drawing.Brush" />
<Parameter Name="alignToRight" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="g">The <see cref="T:System.Drawing.Graphics" /> object to draw to.</param>
<param name="bounds">The bounding <see cref="T:System.Drawing.Rectangle" /> to paint into.</param>
<param name="source">The <see cref="T:System.Windows.Forms.CurrencyManager" /> of the <see cref="T:System.Windows.Forms.DataGrid" /> the that contains the column.</param>
<param name="rowNum">The number of the row in the underlying data table.</param>
<param name="backBrush">A <see cref="T:System.Drawing.Brush" /> that paints the background.</param>
<param name="foreBrush">A <see cref="T:System.Drawing.Brush" /> that paints the foreground color.</param>
<param name="alignToRight">A value indicating whether to align the column's content to the right. <see langword="true" /> if the content should be aligned to the right; otherwise, <see langword="false" />.</param>
<summary>Paints a <see cref="T:System.Windows.Forms.DataGridColumnStyle" /> with the specified <see cref="T:System.Drawing.Graphics" />, <see cref="T:System.Drawing.Rectangle" />, <see cref="T:System.Windows.Forms.CurrencyManager" />, row number, <see cref="T:System.Drawing.Brush" />, and foreground color.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridTextBoxColumn.Paint%2A> method uses the <xref:System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow%2A> to determine the value to draw in the cell. The <xref:System.Windows.Forms.DataGridTextBoxColumn.PaintText%2A> method is called to draw the cell and its contents.
## Examples
The following example uses the <xref:System.Windows.Forms.DataGridTextBoxColumn.Paint%2A> method to paint a clicked cell with new foreground and background color.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.Paint2 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridTextBoxColumn/Paint/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DataGridTextBoxColumn.Paint2 Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.Edit(System.Windows.Forms.CurrencyManager,System.Int32,System.Drawing.Rectangle,System.Boolean,System.String,System.Boolean)" />
<altmember cref="M:System.Windows.Forms.DataGridTextBoxColumn.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,System.String,System.Boolean)" />
</Docs>
</Member>
<MemberGroup MemberName="PaintText">
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws the specified text and surrounding rectangle at the specified location.</summary>
</Docs>
</MemberGroup>
<Member MemberName="PaintText">
<MemberSignature Language="C#" Value="protected void PaintText (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string text, bool alignToRight);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void PaintText(class System.Drawing.Graphics g, valuetype System.Drawing.Rectangle bounds, string text, bool alignToRight) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,System.String,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Sub PaintText (g As Graphics, bounds As Rectangle, text As String, alignToRight As Boolean)" />
<MemberSignature Language="F#" Value="member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * bool -> unit" Usage="dataGridTextBoxColumn.PaintText (g, bounds, text, alignToRight)" />
<MemberSignature Language="C++ CLI" Value="protected:
 void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ text, bool alignToRight);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="g" Type="System.Drawing.Graphics" />
<Parameter Name="bounds" Type="System.Drawing.Rectangle" />
<Parameter Name="text" Type="System.String" />
<Parameter Name="alignToRight" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="g">A <see cref="T:System.Drawing.Graphics" /> object used to draw the string.</param>
<param name="bounds">A <see cref="T:System.Drawing.Rectangle" /> which contains the boundary data of the rectangle.</param>
<param name="text">The string to be drawn to the screen.</param>
<param name="alignToRight">A value indicating whether the text is right-aligned.</param>
<summary>Draws the text and rectangle at the given location with the specified alignment.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.DataGridTextBoxColumn.PaintText%2A> method uses the <xref:System.Windows.Forms.DataFormats.Format> object set with the <xref:System.Windows.Forms.DataGridTextBoxColumn.Format%2A> property to format the value before drawing it to the screen.
The <xref:System.Windows.Forms.DataGridColumnStyle.Paint%2A> method calls the <xref:System.Windows.Forms.DataGridTextBoxColumn.PaintText%2A> method.
]]></format>
</remarks>
<altmember cref="P:System.Windows.Forms.DataGridTextBoxColumn.Format" />
<altmember cref="M:System.Windows.Forms.DataGridColumnStyle.Paint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.CurrencyManager,System.Int32)" />
</Docs>
</Member>
<Member MemberName="PaintText">
<MemberSignature Language="C#" Value="protected void PaintText (System.Drawing.Graphics g, System.Drawing.Rectangle textBounds, string text, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void PaintText(class System.Drawing.Graphics g, valuetype System.Drawing.Rectangle textBounds, string text, class System.Drawing.Brush backBrush, class System.Drawing.Brush foreBrush, bool alignToRight) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Forms.DataGridTextBoxColumn.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,System.String,System.Drawing.Brush,System.Drawing.Brush,System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Protected Sub PaintText (g As Graphics, textBounds As Rectangle, text As String, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)" />
<MemberSignature Language="F#" Value="member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Brush * System.Drawing.Brush * bool -> unit" Usage="dataGridTextBoxColumn.PaintText (g, textBounds, text, backBrush, foreBrush, alignToRight)" />
<MemberSignature Language="C++ CLI" Value="protected:
 void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle textBounds, System::String ^ text, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);" />
<MemberType>Method</MemberType>