-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
TableRow.xml
584 lines (526 loc) · 36.9 KB
/
TableRow.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
<Type Name="TableRow" FullName="System.Web.UI.WebControls.TableRow">
<TypeSignature Language="C#" Value="public class TableRow : System.Web.UI.WebControls.WebControl" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit TableRow extends System.Web.UI.WebControls.WebControl" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.WebControls.TableRow" />
<TypeSignature Language="VB.NET" Value="Public Class TableRow
Inherits WebControl" />
<TypeSignature Language="F#" Value="type TableRow = class
 inherit WebControl" />
<TypeSignature Language="C++ CLI" Value="public ref class TableRow : System::Web::UI::WebControls::WebControl" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.WebControls.WebControl</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultProperty("Cells")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultProperty("Cells")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.ToolboxItem(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.ToolboxItem(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.ParseChildren(true, "Cells")]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.ParseChildren(true, "Cells")>]</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">
<AttributeName Language="C#">[System.ComponentModel.Bindable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(false)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5">
<AttributeName Language="C#">[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]</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">
<AttributeName Language="C#">[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a row in a <see cref="T:System.Web.UI.WebControls.Table" /> control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
In this topic:
- [Introduction](#introduction)
- [Declarative Syntax](#declarative_syntax)
<a name="introduction"></a>
## Introduction
The <xref:System.Web.UI.WebControls.TableRow> class represents a row in a <xref:System.Web.UI.WebControls.Table> control.
This class allows you to control how the contents of the row are displayed. The alignment of the contents in the row are specified by setting the <xref:System.Web.UI.WebControls.TableRow.HorizontalAlign%2A> and <xref:System.Web.UI.WebControls.TableRow.VerticalAlign%2A> properties.
You can programmatically manage the cells in the row by using the <xref:System.Web.UI.WebControls.TableRow.Cells%2A> collection. The <xref:System.Web.UI.WebControls.TableRow.Cells%2A> collection is a collection of <xref:System.Web.UI.WebControls.TableCell> objects that represent the cells in the row.
> [!CAUTION]
> The <xref:System.Web.UI.WebControls.TableCell> control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see [ASP.NET Validation Controls](https://learn.microsoft.com/previous-versions/aspnet/debza5t0(v=vs.100)).
<a name="declarative_syntax"></a>
## Declarative Syntax
```
<asp:TableRow
AccessKey="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
TableSection="TableHeader|TableBody|TableFooter"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
>
<asp:TableCell
AccessKey="string"
AssociatedHeaderCellID="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
Groove|Ridge|Inset|Outset"
BorderWidth="size"
ColumnSpan="integer"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|
X-Small|Small|Medium|Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
RowSpan="integer"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
Text="string"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
Wrap="True|False"
/>
<asp:TableHeaderCell
AbbreviatedText="string"
AccessKey="string"
AssociatedHeaderCellID="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|
Groove|Ridge|Inset|Outset"
BorderWidth="size"
CategoryText="string"
ColumnSpan="integer"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|
X-Small|Small|Medium|Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
HorizontalAlign="NotSet|Left|Center|Right|Justify"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
RowSpan="integer"
runat="server"
Scope="NotSet|Row|Column"
SkinID="string"
Style="string"
TabIndex="integer"
Text="string"
ToolTip="string"
VerticalAlign="NotSet|Top|Middle|Bottom"
Visible="True|False"
Width="size"
Wrap="True|False"
/>
</asp:TableRow>
```
## Examples
This following code example creates a table, programmatically adds elements to the table, and displays the table on the Web page.
[!code-aspx-csharp[TableCell#1](~/snippets/csharp/VS_Snippets_WebNet/TableCell/CS/tablecellcs.aspx#1)]
[!code-aspx-vb[TableCell#1](~/snippets/visualbasic/VS_Snippets_WebNet/TableCell/VB/tablecellvb.aspx#1)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.Table" />
<altmember cref="P:System.Web.UI.WebControls.TableRow.HorizontalAlign" />
<altmember cref="P:System.Web.UI.WebControls.TableRow.VerticalAlign" />
<altmember cref="P:System.Web.UI.WebControls.TableRow.Cells" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TableRow ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.TableRow.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 TableRow();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.TableRow" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this constructor to create and initialize a new instance of the <xref:System.Web.UI.WebControls.TableRow> class.
## Examples
The following code example demonstrates how to create a new instance of a <xref:System.Web.UI.WebControls.TableRow> class programmatically.
This code example is part of a larger example provided for the <xref:System.Web.UI.WebControls.TableRow> class.
[!code-csharp[TableCell#5](~/snippets/csharp/VS_Snippets_WebNet/TableCell/CS/tablecellcs.aspx#5)]
[!code-vb[TableCell#5](~/snippets/visualbasic/VS_Snippets_WebNet/TableCell/VB/tablecellvb.aspx#5)]
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="Cells">
<MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.TableCellCollection Cells { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.WebControls.TableCellCollection Cells" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.TableRow.Cells" />
<MemberSignature Language="VB.NET" Value="Public Overridable ReadOnly Property Cells As TableCellCollection" />
<MemberSignature Language="F#" Value="member this.Cells : System.Web.UI.WebControls.TableCellCollection" Usage="System.Web.UI.WebControls.TableRow.Cells" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::Web::UI::WebControls::TableCellCollection ^ Cells { System::Web::UI::WebControls::TableCellCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</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.MergableProperty(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.MergableProperty(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.TableCellCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of <see cref="T:System.Web.UI.WebControls.TableCell" /> objects that represent the cells of a row in a <see cref="T:System.Web.UI.WebControls.Table" /> control.</summary>
<value>A <see cref="T:System.Web.UI.WebControls.TableCellCollection" /> object that represents a collection of cells from a row of a <see cref="T:System.Web.UI.WebControls.Table" /> control.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this property to programmatically control a collection of <xref:System.Web.UI.WebControls.TableCell> objects that represent the cells from a row of the <xref:System.Web.UI.WebControls.Table> control. You can programmatically add, insert, or remove a <xref:System.Web.UI.WebControls.TableCell> object from the collection.
> [!NOTE]
> This property is only used when building <xref:System.Web.UI.WebControls.Table> controls programmatically. At design time, this property is set by declaring <xref:System.Web.UI.WebControls.TableCell> objects.
## Examples
This following code example creates a table, programmatically adds elements to the table, and displays the table on the Web page.
[!code-aspx-csharp[TableCell#1](~/snippets/csharp/VS_Snippets_WebNet/TableCell/CS/tablecellcs.aspx#1)]
[!code-aspx-vb[TableCell#1](~/snippets/visualbasic/VS_Snippets_WebNet/TableCell/VB/tablecellvb.aspx#1)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.Table" />
<altmember cref="T:System.Web.UI.WebControls.TableCellCollection" />
<altmember cref="T:System.Web.UI.WebControls.TableCell" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="CreateControlCollection">
<MemberSignature Language="C#" Value="protected override System.Web.UI.ControlCollection CreateControlCollection ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Web.UI.ControlCollection CreateControlCollection() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.TableRow.CreateControlCollection" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateControlCollection () As ControlCollection" />
<MemberSignature Language="F#" Value="override this.CreateControlCollection : unit -> System.Web.UI.ControlCollection" Usage="tableRow.CreateControlCollection " />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::Web::UI::ControlCollection ^ CreateControlCollection();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.ControlCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a new <see cref="T:System.Web.UI.ControlCollection" /> object for the <see cref="T:System.Web.UI.WebControls.TableRow" /> control.</summary>
<returns>A <see cref="T:System.Web.UI.ControlCollection" /> object that contains the <see cref="T:System.Web.UI.WebControls.TableRow" /> control's child server controls.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.TableRow.CreateControlCollection%2A> method creates a new <xref:System.Web.UI.ControlCollection> object that holds the <xref:System.Web.UI.WebControls.TableRow> cells.
The <xref:System.Web.UI.WebControls.TableRow.CreateControlCollection%2A> method is primarily of interest to control developers extending the functionality of the <xref:System.Web.UI.WebControls.TableRow> control.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.TableRow.CellControlCollection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="CreateControlStyle">
<MemberSignature Language="C#" Value="protected override System.Web.UI.WebControls.Style CreateControlStyle ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Web.UI.WebControls.Style CreateControlStyle() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.TableRow.CreateControlStyle" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateControlStyle () As Style" />
<MemberSignature Language="F#" Value="override this.CreateControlStyle : unit -> System.Web.UI.WebControls.Style" Usage="tableRow.CreateControlStyle " />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::Web::UI::WebControls::Style ^ CreateControlStyle();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.Style</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a <see cref="T:System.Web.UI.WebControls.TableItemStyle" /> object for the <see cref="T:System.Web.UI.WebControls.TableRow" /> control.</summary>
<returns>A <see cref="T:System.Web.UI.WebControls.Style" /> object that specifies the style properties for the <see cref="T:System.Web.UI.WebControls.TableRow" /> control.
The <see cref="M:System.Web.UI.WebControls.TableRow.CreateControlCollection" /> method is primarily of interest to control developers extending the functionality of the <see cref="T:System.Web.UI.WebControls.TableRow" /> control.</returns>
<remarks>To be added.</remarks>
<altmember cref="T:System.Web.UI.WebControls.TableItemStyle" />
<altmember cref="T:System.Web.UI.WebControls.Style" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="HorizontalAlign">
<MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.HorizontalAlign HorizontalAlign { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.UI.WebControls.HorizontalAlign HorizontalAlign" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.TableRow.HorizontalAlign" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property HorizontalAlign As HorizontalAlign" />
<MemberSignature Language="F#" Value="member this.HorizontalAlign : System.Web.UI.WebControls.HorizontalAlign with get, set" Usage="System.Web.UI.WebControls.TableRow.HorizontalAlign" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::Web::UI::WebControls::HorizontalAlign HorizontalAlign { System::Web::UI::WebControls::HorizontalAlign get(); void set(System::Web::UI::WebControls::HorizontalAlign value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</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.Bindable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.HorizontalAlign.NotSet)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(System.Web.UI.WebControls.HorizontalAlign.NotSet)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.HorizontalAlign</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the horizontal alignment of the contents in the row.</summary>
<value>One of the <see cref="T:System.Web.UI.WebControls.HorizontalAlign" /> values. The default value is <see langword="NotSet" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.TableRow.HorizontalAlign%2A> property to specify the horizontal alignment of the contents of the row. The following table lists the possible values.
|Horizontal Alignment|Description|
|--------------------------|-----------------|
|<xref:System.Web.UI.WebControls.HorizontalAlign.NotSet>|The horizontal alignment is not set.|
|<xref:System.Web.UI.WebControls.HorizontalAlign.Left>|The contents of the row are left justified.|
|<xref:System.Web.UI.WebControls.HorizontalAlign.Center>|The contents of the row are centered.|
|<xref:System.Web.UI.WebControls.HorizontalAlign.Right>|The contents of the row are right justified.|
|<xref:System.Web.UI.WebControls.HorizontalAlign.Justify>|The contents of the row are uniformly spread out and aligned with both the left and right margins.|
## Examples
The following example demonstrates how to use the <xref:System.Web.UI.WebControls.TableRow.HorizontalAlign%2A> property. For a complete, working code example, see the <xref:System.Web.UI.WebControls.TableRow> class overview topic.
[!code-csharp[TableCell#4](~/snippets/csharp/VS_Snippets_WebNet/TableCell/CS/tablecellcs.aspx#4)]
[!code-vb[TableCell#4](~/snippets/visualbasic/VS_Snippets_WebNet/TableCell/VB/tablecellvb.aspx#4)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.HorizontalAlign" />
<altmember cref="P:System.Web.UI.WebControls.TableRow.VerticalAlign" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="SupportsDisabledAttribute">
<MemberSignature Language="C#" Value="public override bool SupportsDisabledAttribute { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool SupportsDisabledAttribute" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.TableRow.SupportsDisabledAttribute" />
<MemberSignature Language="VB.NET" Value="Public Overrides ReadOnly Property SupportsDisabledAttribute As Boolean" />
<MemberSignature Language="F#" Value="member this.SupportsDisabledAttribute : bool" Usage="System.Web.UI.WebControls.TableRow.SupportsDisabledAttribute" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool SupportsDisabledAttribute { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the control should set the <see langword="disabled" /> attribute of the rendered HTML element to "disabled" when the control's <see cref="P:System.Web.UI.WebControls.WebControl.IsEnabled" /> property is <see langword="false" />.</summary>
<value>
<see langword="true" /> if the <see cref="P:System.Web.UI.Control.RenderingCompatibility" /> property indicates an ASP.NET version lower than <c>4.0</c>; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property indicates how ASP.NET should render HTML for a control when the control is disabled. If this property is `true`, ASP.NET renders a `disabled` attribute when a control is disabled. If this property is `false`, ASP.NET renders a `class` attribute when a control is disabled. For more information, see <xref:System.Web.UI.WebControls.WebControl.SupportsDisabledAttribute%2A?displayProperty=nameWithType>.
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.Control.RenderingCompatibility" />
<altmember cref="P:System.Web.UI.WebControls.WebControl.DisabledCssClass" />
<altmember cref="P:System.Web.UI.WebControls.WebControl.SupportsDisabledAttribute" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="TableSection">
<MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.TableRowSection TableSection { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.UI.WebControls.TableRowSection TableSection" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.TableRow.TableSection" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property TableSection As TableRowSection" />
<MemberSignature Language="F#" Value="member this.TableSection : System.Web.UI.WebControls.TableRowSection with get, set" Usage="System.Web.UI.WebControls.TableRow.TableSection" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::Web::UI::WebControls::TableRowSection TableSection { System::Web::UI::WebControls::TableRowSection get(); void set(System::Web::UI::WebControls::TableRowSection value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<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">
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.TableRowSection.TableBody)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(System.Web.UI.WebControls.TableRowSection.TableBody)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.TableRowSection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the location for a <see cref="T:System.Web.UI.WebControls.TableRow" /> object in a <see cref="T:System.Web.UI.WebControls.Table" /> control.</summary>
<value>A <see cref="T:System.Web.UI.WebControls.TableRowSection" /> value. The default is <see cref="F:System.Web.UI.WebControls.TableRowSection.TableBody" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.TableRow.TableSection%2A> property to get or set where the <xref:System.Web.UI.WebControls.TableRow> object is placed in a <xref:System.Web.UI.WebControls.Table> control. For the available table locations, see <xref:System.Web.UI.WebControls.TableRowSection>. The following table lists the possible values.
|Table row section|Displayed as|
|-----------------------|------------------|
|<xref:System.Web.UI.WebControls.TableRowSection.TableHeader>|The header row.|
|<xref:System.Web.UI.WebControls.TableRowSection.TableBody>|The body of the table.|
|<xref:System.Web.UI.WebControls.TableRowSection.TableFooter>|The footer row.|
When using the declarative syntax, the sections must be in the order of header, body, and then footer.
The <xref:System.Web.UI.WebControls.TableRowSection> enumeration enables you to build accessible Web sites using the <xref:System.Web.UI.WebControls.Table> control by adding the `<thead>`, `<tbody>`, and `<tfoot>` elements to the HTML that is rendered to the client. If all rows in a table are in the `<tbody>` element, the section information is not rendered. At least one row must be in a non-body element.
The value of this property is stored in view state.
## Examples
The following code example demonstrates how to use the <xref:System.Web.UI.WebControls.TableRow.TableSection%2A> property to define header and footer rows in a <xref:System.Web.UI.WebControls.Table> control.
[!code-aspx-csharp[TableRow#1](~/snippets/csharp/VS_Snippets_WebNet/TableRow/CS/TableRowCS.aspx#1)]
[!code-aspx-vb[TableRow#1](~/snippets/visualbasic/VS_Snippets_WebNet/TableRow/VB/TableRowVB.aspx#1)]
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The <see cref="T:System.Web.UI.WebControls.TableRowSection" /> is not valid.</exception>
<altmember cref="T:System.Web.UI.WebControls.TableRowSection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
<Member MemberName="VerticalAlign">
<MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.VerticalAlign VerticalAlign { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.UI.WebControls.VerticalAlign VerticalAlign" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.TableRow.VerticalAlign" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property VerticalAlign As VerticalAlign" />
<MemberSignature Language="F#" Value="member this.VerticalAlign : System.Web.UI.WebControls.VerticalAlign with get, set" Usage="System.Web.UI.WebControls.TableRow.VerticalAlign" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::Web::UI::WebControls::VerticalAlign VerticalAlign { System::Web::UI::WebControls::VerticalAlign get(); void set(System::Web::UI::WebControls::VerticalAlign value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</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.Bindable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.VerticalAlign.NotSet)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(System.Web.UI.WebControls.VerticalAlign.NotSet)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.VerticalAlign</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the vertical alignment of the contents in the row.</summary>
<value>One of the <see cref="T:System.Web.UI.WebControls.VerticalAlign" /> values. The default value is <see langword="NotSet" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.TableRow.VerticalAlign%2A> property to specify the vertical alignment of the contents of the row. The following table lists the possible values.
|Vertical Alignment|Description|
|------------------------|-----------------|
|<xref:System.Web.UI.WebControls.VerticalAlign.NotSet>|The vertical alignment is not set.|
|<xref:System.Web.UI.WebControls.VerticalAlign.Top>|The contents of the row are aligned with the top of the row.|
|<xref:System.Web.UI.WebControls.VerticalAlign.Middle>|The contents of the row are aligned with the middle of the row.|
|<xref:System.Web.UI.WebControls.VerticalAlign.Bottom>|The contents of the row are aligned with the bottom of the row.|
## Examples
The following example demonstrates how to use the <xref:System.Web.UI.WebControls.TableRow.VerticalAlign%2A> property. For a complete, working code example, see the <xref:System.Web.UI.WebControls.TableRow> class overview topic.
[!code-csharp[TableCell#4](~/snippets/csharp/VS_Snippets_WebNet/TableCell/CS/tablecellcs.aspx#4)]
[!code-vb[TableCell#4](~/snippets/visualbasic/VS_Snippets_WebNet/TableCell/VB/tablecellvb.aspx#4)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.VerticalAlign" />
<altmember cref="P:System.Web.UI.WebControls.TableRow.HorizontalAlign" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ty0ce8sc(v=vs.100)">Table, TableRow, and TableCell Web Server Control Overview</related>
</Docs>
</Member>
</Members>
</Type>