HTMLTableElement

Overview

The HTMLTableElement interface provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.

Location

 

caption

 

property caption: HTMLElement read write;

 

HTMLElement caption { get; set; }

 

var caption: HTMLElement { get{} set{} }

 

HTMLElement caption { __get; __set; }

 

Property caption() As HTMLElement

createCaption

Returns an HTMLElement representing the first element specifies the caption (or title) of a table."><caption> that is a child of the element. If none is found, a new one is created and inserted in the tree as the first child of the element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data."><table> element.

 

method createCaption: HTMLElement

 

HTMLElement createCaption()

 

func createCaption() -> HTMLElement

 

HTMLElement createCaption()

 

Function createCaption() As HTMLElement

createTFoot

Returns an HTMLElement representing the first element defines a set of rows summarizing the columns of the table."><tfoot> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a element specifies the caption (or title) of a table."><caption>, a element defines a group of columns within a table."><colgroup>, nor a element defines a set of rows defining the head of the columns of the table."><thead>, or as the last child if there is no such element.

 

method createTFoot: HTMLElement

 

HTMLElement createTFoot()

 

func createTFoot() -> HTMLElement

 

HTMLElement createTFoot()

 

Function createTFoot() As HTMLElement

createTHead

Returns an HTMLElement representing the first element defines a set of rows defining the head of the columns of the table."><thead> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a element specifies the caption (or title) of a table."><caption>, nor a element defines a group of columns within a table."><colgroup>, or as the last child if there is no such element.

 

method createTHead: HTMLElement

 

HTMLElement createTHead()

 

func createTHead() -> HTMLElement

 

HTMLElement createTHead()

 

Function createTHead() As HTMLElement

deleteCaption

Removes the first element specifies the caption (or title) of a table."><caption> that is a child of the element.

 

method deleteCaption: HTMLElement

 

HTMLElement deleteCaption()

 

func deleteCaption() -> HTMLElement

 

HTMLElement deleteCaption()

 

Function deleteCaption() As HTMLElement

deleteRow

Removes the row corresponding to the index given in parameter. If the index value is -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in the collection, a DOMException with the value IndexSizeError is raised.

 

method deleteRow(parindex: dynamic): Int32

 

Int32 deleteRow(dynamic parindex)

 

func deleteRow(_ parindex: dynamic) -> Int32

 

Int32 deleteRow(dynamic parindex)

 

Function deleteRow(parindex As dynamic) As Int32

Parameters:

  • parindex:

deleteTFoot

Removes the first element defines a set of rows summarizing the columns of the table."><tfoot> that is a child of the element.

 

method deleteTFoot: HTMLElement

 

HTMLElement deleteTFoot()

 

func deleteTFoot() -> HTMLElement

 

HTMLElement deleteTFoot()

 

Function deleteTFoot() As HTMLElement

deleteTHead

Removes the first element defines a set of rows defining the head of the columns of the table."><thead> that is a child of the element.

 

method deleteTHead: HTMLElement

 

HTMLElement deleteTHead()

 

func deleteTHead() -> HTMLElement

 

HTMLElement deleteTHead()

 

Function deleteTHead() As HTMLElement

insertRow

Returns an HTMLTableRowElement representing a new row of the table. It inserts it in the rows collection immediately before the element defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements."><tr> element at the given index position. If necessary a ) encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of the table (<table>)."><tbody> is created. If the index is -1, the new row is appended to the collection. If the index is smaller than -1 or greater than the number of rows in the collection, a DOMException with the value IndexSizeError is raised.

 

method insertRow(parindex: dynamic): HTMLElement

 

HTMLElement insertRow(dynamic parindex)

 

func insertRow(_ parindex: dynamic) -> HTMLElement

 

HTMLElement insertRow(dynamic parindex)

 

Function insertRow(parindex As dynamic) As HTMLElement

Parameters:

  • parindex:

rows

 

property rows: HTMLCollection read;

 

HTMLCollection rows { get; }

 

var rows: HTMLCollection { get{} }

 

HTMLCollection rows { __get; }

 

ReadOnly Property rows() As HTMLCollection

tBodies

 

property tBodies: HTMLCollection read;

 

HTMLCollection tBodies { get; }

 

var tBodies: HTMLCollection { get{} }

 

HTMLCollection tBodies { __get; }

 

ReadOnly Property tBodies() As HTMLCollection

tFoot

 

property tFoot: HTMLElement read write;

 

HTMLElement tFoot { get; set; }

 

var tFoot: HTMLElement { get{} set{} }

 

HTMLElement tFoot { __get; __set; }

 

Property tFoot() As HTMLElement

tHead

 

property tHead: HTMLElement read write;

 

HTMLElement tHead { get; set; }

 

var tHead: HTMLElement { get{} set{} }

 

HTMLElement tHead { __get; __set; }

 

Property tHead() As HTMLElement

 

caption

 

property caption: HTMLElement read write;

 

HTMLElement caption { get; set; }

 

var caption: HTMLElement { get{} set{} }

 

HTMLElement caption { __get; __set; }

 

Property caption() As HTMLElement

rows

 

property rows: HTMLCollection read;

 

HTMLCollection rows { get; }

 

var rows: HTMLCollection { get{} }

 

HTMLCollection rows { __get; }

 

ReadOnly Property rows() As HTMLCollection

tBodies

 

property tBodies: HTMLCollection read;

 

HTMLCollection tBodies { get; }

 

var tBodies: HTMLCollection { get{} }

 

HTMLCollection tBodies { __get; }

 

ReadOnly Property tBodies() As HTMLCollection

tFoot

 

property tFoot: HTMLElement read write;

 

HTMLElement tFoot { get; set; }

 

var tFoot: HTMLElement { get{} set{} }

 

HTMLElement tFoot { __get; __set; }

 

Property tFoot() As HTMLElement

tHead

 

property tHead: HTMLElement read write;

 

HTMLElement tHead { get; set; }

 

var tHead: HTMLElement { get{} set{} }

 

HTMLElement tHead { __get; __set; }

 

Property tHead() As HTMLElement

 

createCaption

Returns an HTMLElement representing the first element specifies the caption (or title) of a table."><caption> that is a child of the element. If none is found, a new one is created and inserted in the tree as the first child of the element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data."><table> element.

 

method createCaption: HTMLElement

 

HTMLElement createCaption()

 

func createCaption() -> HTMLElement

 

HTMLElement createCaption()

 

Function createCaption() As HTMLElement

createTFoot

Returns an HTMLElement representing the first element defines a set of rows summarizing the columns of the table."><tfoot> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a element specifies the caption (or title) of a table."><caption>, a element defines a group of columns within a table."><colgroup>, nor a element defines a set of rows defining the head of the columns of the table."><thead>, or as the last child if there is no such element.

 

method createTFoot: HTMLElement

 

HTMLElement createTFoot()

 

func createTFoot() -> HTMLElement

 

HTMLElement createTFoot()

 

Function createTFoot() As HTMLElement

createTHead

Returns an HTMLElement representing the first element defines a set of rows defining the head of the columns of the table."><thead> that is a child of the element. If none is found, a new one is created and inserted in the tree immediately before the first element that is neither a element specifies the caption (or title) of a table."><caption>, nor a element defines a group of columns within a table."><colgroup>, or as the last child if there is no such element.

 

method createTHead: HTMLElement

 

HTMLElement createTHead()

 

func createTHead() -> HTMLElement

 

HTMLElement createTHead()

 

Function createTHead() As HTMLElement

deleteCaption

Removes the first element specifies the caption (or title) of a table."><caption> that is a child of the element.

 

method deleteCaption: HTMLElement

 

HTMLElement deleteCaption()

 

func deleteCaption() -> HTMLElement

 

HTMLElement deleteCaption()

 

Function deleteCaption() As HTMLElement

deleteRow

Removes the row corresponding to the index given in parameter. If the index value is -1 the last row is removed; if it smaller than -1 or greater than the amount of rows in the collection, a DOMException with the value IndexSizeError is raised.

 

method deleteRow(parindex: dynamic): Int32

 

Int32 deleteRow(dynamic parindex)

 

func deleteRow(_ parindex: dynamic) -> Int32

 

Int32 deleteRow(dynamic parindex)

 

Function deleteRow(parindex As dynamic) As Int32

Parameters:

  • parindex:

deleteTFoot

Removes the first element defines a set of rows summarizing the columns of the table."><tfoot> that is a child of the element.

 

method deleteTFoot: HTMLElement

 

HTMLElement deleteTFoot()

 

func deleteTFoot() -> HTMLElement

 

HTMLElement deleteTFoot()

 

Function deleteTFoot() As HTMLElement

deleteTHead

Removes the first element defines a set of rows defining the head of the columns of the table."><thead> that is a child of the element.

 

method deleteTHead: HTMLElement

 

HTMLElement deleteTHead()

 

func deleteTHead() -> HTMLElement

 

HTMLElement deleteTHead()

 

Function deleteTHead() As HTMLElement

insertRow

Returns an HTMLTableRowElement representing a new row of the table. It inserts it in the rows collection immediately before the element defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements."><tr> element at the given index position. If necessary a ) encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of the table (<table>)."><tbody> is created. If the index is -1, the new row is appended to the collection. If the index is smaller than -1 or greater than the number of rows in the collection, a DOMException with the value IndexSizeError is raised.

 

method insertRow(parindex: dynamic): HTMLElement

 

HTMLElement insertRow(dynamic parindex)

 

func insertRow(_ parindex: dynamic) -> HTMLElement

 

HTMLElement insertRow(dynamic parindex)

 

Function insertRow(parindex As dynamic) As HTMLElement

Parameters:

  • parindex: