HtmlTableElement Class
https://html.spec.whatwg.org/multipage/tables.html#htmltableelement
public sealed class HtmlTableElement : HtmlElement- Inheritance
HtmlElementHtmlTableElement
Properties
| Name | Description |
|---|---|
| Align | Gets or sets the value of the align content attribute. |
| BgColor | Gets or sets the value of the bgcolor content attribute. |
| Border | Gets or sets the value of the border content attribute. |
| Caption | https://html.spec.whatwg.org/multipage/tables.html#dom-table-caption |
| CellPadding | Gets or sets the value of the cellpadding content attribute. |
| CellSpacing | Gets or sets the value of the cellspacing content attribute. |
| Frame | Gets or sets the value of the frame content attribute. |
| Rows | https://html.spec.whatwg.org/multipage/tables.html#dom-table-rows: the rows of the thead elements, then the rows that are children of the table or of its tbody elements, then the rows of the tfoot elements. |
| Rules | Gets or sets the value of the rules content attribute. |
| Summary | Gets or sets the value of the summary content attribute. |
| TBodies | Gets the live collection of the tbody children of the table. |
| TFoot | https://html.spec.whatwg.org/multipage/tables.html#dom-table-tfoot |
| THead | https://html.spec.whatwg.org/multipage/tables.html#dom-table-thead |
| Width | Gets or sets the value of the width content attribute. |
Align
HtmlElements.g.csGets or sets the value of the align content attribute.
public string Align { get; set; }BgColor
HtmlElements.g.csGets or sets the value of the bgcolor content attribute.
public string BgColor { get; set; }Border
HtmlElements.g.csGets or sets the value of the border content attribute.
public string Border { get; set; }Caption
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-caption
public HtmlTableCaptionElement? Caption { get; set; }CellPadding
HtmlElements.g.csGets or sets the value of the cellpadding content attribute.
public string CellPadding { get; set; }Property value
See also
CellSpacing
HtmlElements.g.csGets or sets the value of the cellspacing content attribute.
public string CellSpacing { get; set; }Property value
See also
Frame
HtmlElements.g.csGets or sets the value of the frame content attribute.
public string Frame { get; set; }Rows
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-rows: the rows of the thead elements, then the rows that are children of the table or of its tbody elements, then the rows of the tfoot elements.
public HtmlCollection Rows { get; }Property value
See also
Rules
HtmlElements.g.csGets or sets the value of the rules content attribute.
public string Rules { get; set; }Summary
HtmlElements.g.csGets or sets the value of the summary content attribute.
public string Summary { get; set; }TBodies
Tables.csGets the live collection of the tbody children of the table.
public HtmlCollection TBodies { get; }Property value
See also
TFoot
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-tfoot
public HtmlTableSectionElement? TFoot { get; set; }THead
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-thead
public HtmlTableSectionElement? THead { get; set; }Width
HtmlElements.g.csGets or sets the value of the width content attribute.
public string Width { get; set; }Methods
| Name | Description |
|---|---|
| CreateCaption() | Returns the caption element of the table, creating and inserting it when there is none. |
| CreateTBody() | https://html.spec.whatwg.org/multipage/tables.html#dom-table-createtbody |
| CreateTFoot() | Returns the tfoot element of the table, creating and inserting it when there is none. |
| CreateTHead() | Returns the thead element of the table, creating and inserting it when there is none. |
| DeleteCaption() | Removes the first caption child of the table, if any. |
| DeleteRow(int) | https://html.spec.whatwg.org/multipage/tables.html#dom-table-deleterow |
| DeleteTFoot() | Removes the first tfoot child of the table, if any. |
| DeleteTHead() | Removes the first thead child of the table, if any. |
| InsertRow(int) | https://html.spec.whatwg.org/multipage/tables.html#dom-table-insertrow |
CreateCaption()
Tables.csReturns the caption element of the table, creating and inserting it when there is none.
public HtmlTableCaptionElement CreateCaption()CreateTBody()
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-createtbody
public HtmlTableSectionElement CreateTBody()CreateTFoot()
Tables.csReturns the tfoot element of the table, creating and inserting it when there is none.
public HtmlTableSectionElement CreateTFoot()CreateTHead()
Tables.csReturns the thead element of the table, creating and inserting it when there is none.
public HtmlTableSectionElement CreateTHead()DeleteCaption()
Tables.csRemoves the first caption child of the table, if any.
public void DeleteCaption()DeleteRow(int)
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-deleterow
DeleteTFoot()
Tables.csRemoves the first tfoot child of the table, if any.
public void DeleteTFoot()DeleteTHead()
Tables.csRemoves the first thead child of the table, if any.
public void DeleteTHead()InsertRow(int)
Tables.cshttps://html.spec.whatwg.org/multipage/tables.html#dom-table-insertrow
public HtmlTableRowElement InsertRow(int index = -1)