
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 |
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 get_span(
long *p
);
Retrieves the 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 put_span
HRESULT get_width(
VARIANT *p
);
Retrieves the calculated width of the element, in pixels.
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
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_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
HRESULT put_span(
long v
);
Sets how many columns are 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
HRESULT put_width(
VARIANT v
);
Sets the calculated width of the element, in pixels.
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.