
This interface specifies a row in a table.
Within a row, the following tags are valid:
This element is a block element.
IHTMLTableRow Methods
HRESULT deleteCell(
long index
);
Removes a cell and all its contents from the row.
See also insertCell
HRESULT get_align(
BSTR *p
);
Displays the element left flush, right flush, or centered relative to the display or table.
| center | Aligns to the center. |
| left | Aligns to the left edge. |
| right | Aligns to the right edge. |
See also put_align
HRESULT get_bgColor(
VARIANT *p
);
Retrieves the background color behind the element.
See also put_bgColor
HRESULT get_borderColor(
VARIANT *p
);
Retrieves the border color and must be used with the border property.
See also put_borderColor
HRESULT get_borderColorDark(
VARIANT *p
);
Retrieves independent border color control over one of the two colors used to draw a 3-D border, opposite of borderColorLight, and must be used with the border property.
See also put_borderColorDark
HRESULT get_borderColorLight(
VARIANT *p
);
Retrieves independent border color control over one of the two colors used to draw a 3-D border, opposite of borderColorDark, and must be used with the border property.
See also put_borderColorLight
HRESULT get_cells(
IHTMLElementCollection **p
);
Retrieves a collection of all cells in the row of a table. This is a collection of TH and TD elements.
HRESULT get_rowIndex( long *p );
Returns the zero-based position index of this row relative to the table.
HRESULT get_sectionRowIndex(
long *p
);
Returns the zero-based index of this row with respect to the section that this is in (that is, the rowIndex of the first row in this section).
HRESULT get_vAlign(
BSTR *p
);
Retrieves how the text and other content of an element is vertically aligned within the element.
| baseline | Aligns the baseline of the first line of text with the baselines in adjacent elements. |
| bottom | Aligns the text at the bottom of the element. |
| middle | Aligns the text in the middle of the element. This is the default value for this property. |
| top | Aligns the text at the top of the element. |
See also get_vAlign
HRESULT insertCell(
long index
);
Inserts an empty cell into this row. The cell is inserted at the zero-based index passed into the table. If -1, or the size of the cells collection for this row is passed in, the cell is appended and a pointer to the cell created is returned.
See also deleteCell
HRESULT put_align(
BSTR v
);
Displays the element left flush, right flush, or centered relative to the display or table.
| center | Aligns to the center. |
| left | Aligns to the left edge. |
| right | Aligns to the right edge. |
See also get_align
HRESULT put_bgColor(
VARIANT v
);
Sets the background color behind the element.
See also get_bgColor
HRESULT put_borderColor(
VARIANT v
);
Sets the border color and must be used with the border property.
See also get_borderColor
HRESULT put_borderColorDark(
VARIANT v
);
Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of borderColorLight, and must be used with the border property.
See also get_borderColorDark
HRESULT put_borderColorLight(
VARIANT v
);
Sets independent border color control over one of the two colors used to draw a 3-D border, opposite of borderColorDark, and must be used with the border property.
See also get_borderColorLight
HRESULT put_vAlign(
BSTR v
);
Sets how the text and other content of an element is vertically aligned within the element.
| baseline | Aligns the baseline of the first line of text with the baselines in adjacent elements. |
| bottom | Aligns the text at the bottom of the element. |
| middle | Aligns the text in the middle of the element. This is the default value for this property. |
| top | Aligns the text at the top of the element. |
See also get_vAlign
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.