
This interface is used to designate rows as the body of the table.
This element is exposed for all tables, even if the table did not explicitly define a TBODY element.
This element is a block element.
IHTMLTableSection Methods
| put_align | get_align | put_vAlign |
| get_vAlign | put_bgColor | get_bgColor |
| get_rows | insertRow | |
| deleteRow |
HRESULT deleteRow(
long index
);
Removes the row indicated by the value of the index parameter from this table section.
See also insertRow
HRESULT get_bgColor(
VARIANT *p
);
Retrieves the background color behind the element.
See also put_bgColor
HRESULT get_rows(
IHTMLElementCollection **p
);
Returns a zero-based collection of the rows in this section of the table.
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_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 put_vAlign
HRESULT insertRow(
long index,
IDispatch **row
);
Inserts an empty row into this table section. The row is added at the position indicated by the index provided. For example, passing in 1 adds the row between 0 and 1, thus becoming the row with index 1. Passing in -1 or the size of the collection causes the row to be appended.
See also deleteRow
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_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.