com.aspose.html

Class HTMLTableRowElement

    • Constructor Detail

      • HTMLTableRowElement

        public HTMLTableRowElement(DOMName name,
                                   Document doc)

        Initializes a new instance of the HTMLTableRowElement class.

        Parameters:
        name - The DOM name.
        doc - The document.
    • Method Detail

      • getRowIndex

        @DOMNameAttribute(name="rowIndex")
        public int getRowIndex()

        This is in logical order and not in document order. The

         rowIndex
         
        does take into account sections (
         THEAD
         
        ,
         TFOOT
         
        , or
         TBODY
         
        ) within the table, placing
         THEAD
         
        rows first in the index, followed by
         TBODY
         
        rows, followed by
         TFOOT
         
        rows.
      • getSectionRowIndex

        @DOMNameAttribute(name="sectionRowIndex")
        public int getSectionRowIndex()

        The index of this row, relative to the current section (

         THEAD
         
        ,
         TFOOT
         
        , or
         TBODY
         
        ), starting from 0.
      • getAlign

        @DOMNameAttribute(name="align")
        public String getAlign()

        Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.01.

      • setAlign

        @DOMNameAttribute(name="align")
        public void setAlign(String value)

        Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.01.

      • getBgColor

        @DOMNameAttribute(name="bgColor")
        public String getBgColor()

        Background color for rows. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.

      • setBgColor

        @DOMNameAttribute(name="bgColor")
        public void setBgColor(String value)

        Background color for rows. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.

      • getCh

        @DOMNameAttribute(name="ch")
        public String getCh()

        Alignment character for cells in a column. See the char attribute definition in HTML 4.01.

      • setCh

        @DOMNameAttribute(name="ch")
        public void setCh(String value)

        Alignment character for cells in a column. See the char attribute definition in HTML 4.01.

      • getChOff

        @DOMNameAttribute(name="chOff")
        public String getChOff()

        Offset of alignment character. See the charoff attribute definition in HTML 4.01.

      • setChOff

        @DOMNameAttribute(name="chOff")
        public void setChOff(String value)

        Offset of alignment character. See the charoff attribute definition in HTML 4.01.

      • getVAlign

        @DOMNameAttribute(name="valign")
        public String getVAlign()

        Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.01.

      • setVAlign

        @DOMNameAttribute(name="valign")
        public void setVAlign(String value)

        Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.01.

      • insertCell

        @DOMNameAttribute(name="insertCell")
        public HTMLElement insertCell(int index)

        Insert an empty

         TD
         
        cell into this row. If
         index
         
        is -1 or equal to the number of cells, the new cell is appended.

        Parameters:
        index - The place to insert the cell, starting from 0.
        Returns:
        The newly created cell.
        Throws:
        DOMException - INDEX_SIZE_ERR: Raised if the specified
         index
         
        is greater than the number of cells or if the index is a negative number other than -1.
      • deleteCell

        @DOMNameAttribute(name="deleteCell")
        public void deleteCell(int index)

        Delete a cell from the current row.

        Parameters:
        index - The index of the cell to delete, starting from 0. If the index is -1 the last cell in the row is deleted.
        Throws:
        DOMException - INDEX_SIZE_ERR: Raised if the specified
         index
         
        is greater than or equal to the number of cells or if the index is a negative number other than -1.