
This interface specifies a cell in a table.
This element is a block element.
IHTMLTableCell Methods
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_background(
BSTR *p
);
Retrieves a background picture for the cell. The picture is tiled behind the text and graphics in the table cell.
See also put_background
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_cellIndex(
long *p
);
Retrieves the cell index value.
HRESULT get_colSpan(
long *p
);
Retrieves how many columns in the TABLE this cell spans.
See also put_colSpan
HRESULT get_height(
VARIANT *p
);
Retrieves the calculated height of the element, in pixels.
If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.
See also put_height
HRESULT get_noWrap(
VARIANT_BOOL *p
);
Determines whether automatic word wrapping is enabled or disabled for the element.
See also put_noWrap
HRESULT get_rowSpan(
long *p
);
Retrieves how many rows in a TABLE this cell spans.
See also put_rowSpan
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_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_background(
BSTR v
);
Sets a background picture for the cell. The picture is tiled behind the text and graphics in the table cell.
See also get_background
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_colSpan(
long v
);
Sets how many columns in the TABLE this cell should span.
See also get_colSpan
HRESULT put_height(
VARIANT v
);
Sets the calculated height of the element, in pixels.
If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.
See also get_height
HRESULT put_noWrap(
VARIANT_BOOL v
);
Enables or disables automatic word wrapping for the element.
See also get_noWrap
HRESULT put_rowSpan(
long v
);
Sets how many rows in a TABLE this cell should span.
See also get_rowSpan
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_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.