IHTMLTableSection

IHTMLTableSection


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  

IHTMLTableSection::deleteRow

HRESULT deleteRow(
    long index 
);

Removes the row indicated by the value of the index parameter from this table section.

index
Long integer value that specifies the position of the row.

See also insertRow

IHTMLTableSection::get_bgColor

HRESULT get_bgColor(
    VARIANT *p 
);

Retrieves the background color behind the element.

p
Address of a VARIANT structure that receives the color. The color can be one of the color names or values given in the Color Table reference documentation.

See also put_bgColor

IHTMLTableSection::get_rows

HRESULT get_rows(
    IHTMLElementCollection **p 
);

Returns a zero-based collection of the rows in this section of the table.

p
Address of a pointer to the IHTMLElementCollection interface of the table.

IHTMLTableSection::get_align

HRESULT get_align(
   BSTR *p 
);

Displays the element left flush, right flush, or centered relative to the display or table.

p
Address of a string variable that receives one of these values:
center Aligns to the center.
left Aligns to the left edge.
right Aligns to the right edge.

See also put_align

IHTMLTableSection::get_vAlign

HRESULT get_vAlign(
    BSTR *p 
);

Retrieves how the text and other content of an element is vertically aligned within the element.

p
Address of a string variable that receives one of these strings:
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

IHTMLTableSection::insertRow

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.

index
Long integer that contains the value specifying the position in the table.
row
Address of a pointer to an IDispatch interface.

See also deleteRow

IHTMLTableSection::put_align

HRESULT put_align(
    BSTR v 
);

Displays the element left flush, right flush, or centered relative to the display or table.

v
String specifying the alignment. Can be one of these values:
center Aligns to the center.
left Aligns to the left edge.
right Aligns to the right edge.

See also get_align

IHTMLTableSection::put_bgColor

HRESULT put_bgColor(
    VARIANT v 
);

Sets the background color behind the element.

v
String or value specifying the color. The color can be one of the color names or values given in the Color Table reference documentation.

See also get_bgColor

IHTMLTableSection::put_vAlign

HRESULT put_vAlign(
    BSTR v 
);

Sets how the text and other content of an element is vertically aligned within the element.

v
String specifying the vertical alignment. Can be one of these strings:
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.