Table of Contents

Class HTMLTableSectionElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The HTMLTableSectionElement interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies ({{HTMLElement("thead")}}, {{HTMLElement("tfoot")}}, and {{HTMLElement("tbody")}}, respectively) in an HTML table.

[Value("HTMLTableSectionElement")]
public class HTMLTableSectionElement : HTMLElement
Inheritance
HTMLTableSectionElement
Inherited Members

Remarks

-The HTML elements implementing this interface: tfoot, thead, and tbody.

See also on MDN

Constructors

HTMLTableSectionElement()

public HTMLTableSectionElement()

Properties

Align

IMPORTANT
Deprecated
The align property of the HTMLTableSectionElement interface is a string indicating how to horizontally align text in a {{htmlelement("thead")}}, {{htmlelement("tbody")}} or {{htmlelement("tfoot")}} table section. Individual rows and cells can override it.
[Value("align")]
public string Align { get; set; }

Property Value

string

The possible values are:

Remarks

NOTE

This property is deprecated, and CSS should be used to align text horizontally in a cell. Use the CSS text-align property, which takes precedence, to horizontally align text in section cells instead.

-text-align
-Learn: Styling tables

See also on MDN

Ch

IMPORTANT
Deprecated
The ch property of the HTMLTableSectionElement interface does nothing. It reflects the char attribute of the section element.
[Value("ch")]
public string Ch { get; set; }

Property Value

string

A single character.

Remarks

NOTE

This property was designed to participate to the ability to align table cell content on a specific character (typically the decimal point), but was never implemented by browsers.

To achieve such alignment, watch for the support of a string value with the text-align CSS property.

-text-align

See also on MDN

ChOff

IMPORTANT
Deprecated
The chOff property of the HTMLTableSectionElement interface does nothing. It reflects the charoff attribute of the section element.
[Value("chOff")]
public string ChOff { get; set; }

Property Value

string

An integer.

Remarks

NOTE

This property was designed to participate in an ability to align table cell content on a specific character (typically the decimal point), but was never implemented by browsers.

To achieve such alignment, watch for the support of a string value with the text-align CSS property.

-text-align

See also on MDN

Rows

The rows read-only property of the HTMLTableSectionElement interface returns a live HTMLCollection containing the rows in the section. The HTMLCollection is live and is automatically updated when rows are added or removed.

[Value("rows")]
public HTMLCollection Rows { get; }

Property Value

HTMLCollection

A live HTMLCollection of HTMLTableRowElement objects.

Remarks

VAlign

IMPORTANT
Deprecated
The vAlign property of the HTMLTableSectionElement interface is a string indicating how to vertically align text in a {{htmlelement("thead")}}, {{htmlelement("tbody")}} or {{htmlelement("tfoot")}} table section. Individual rows and cells can override it.
[Value("vAlign")]
public string VAlign { get; set; }

Property Value

string

The possible values are: "top", "middle", "bottom", or "baseline"

Remarks

NOTE

This property is deprecated. Use the CSS vertical-align property to horizontally align text in section cells instead.

-vertical-align
-Learn: Styling tables

See also on MDN

Methods

DeleteRow(long)

The deleteRow() method of the HTMLTableSectionElement interface removes a
specific row (tr) from a given section.

[Value("deleteRow")]
public GlobalObject.Undefined DeleteRow(long index)

Parameters

index long

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

InsertRow(long)

The insertRow() method of the HTMLTableSectionElement interface inserts a new row
(tr) in the given table sectioning element (thead, tfoot, or
tbody), then returns a reference to this new row.

[Value("insertRow")]
public HTMLTableRowElement InsertRow(long index = 0)

Parameters

index long

Returns

HTMLTableRowElement

An HTMLTableRowElement that references the new row.

Remarks

NOTE

insertRow() inserts the row directly into the
section. The row does not need to be appended separately as would be the case if
CreateElement(string, Union34) had been used to create the new
<tr> element.

-InsertCell(long)
-InsertRow(long)

See also on MDN