IHTMLTableCol

IHTMLTableCol


This interface is used to specify column-based defaults for the table properties.

This element is a block element.

IHTMLTableCol Methods
put_span   get_span   put_width  
get_width   put_align   get_align  
put_vAlign   get_vAlign  

IHTMLTableCol::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

IHTMLTableCol::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

IHTMLTableCol::get_span

HRESULT get_span(
    long *p 
);

Retrieves the number of columns in the group.

p
Address of a long integer that receives the number of columns.

This attribute should be ignored if the COLGROUP element contains one or more COL elements. The purpose of this attribute is to provide a more convenient way of grouping columns without the need to specify COL elements.

See also put_span

IHTMLTableCol::get_width

HRESULT get_width(
    VARIANT *p 
);

Retrieves the calculated width of the element, in pixels.

p
Address of a VARIANT structure that receives the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also put_width

IHTMLTableCol::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

IHTMLTableCol::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

IHTMLTableCol::put_span

HRESULT put_span( 
    long v 
);

Sets how many columns are in the group.

v
Number of columns in the group.

This attribute should be ignored if the COLGROUP element contains one or more COL elements. The purpose of this attribute is to provide a more convenient way of grouping columns without the need to specify COL elements.

See also get_span

IHTMLTableCol::put_width

HRESULT put_width( 
    VARIANT v 
);

Sets the calculated width of the element, in pixels.

v
Value specifying the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also get_width

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.