Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves how the text and content of a table cell is vertically aligned in relation to one of the cell borders.
Syntax
HRESULT get_vAlign( BSTR *p );
Parameters
- p
- Address of a string variable that receives one of these strings:
baseline Aligns the contents of an object supporting the VALIGN attribute to the base line. sub Vertically aligns the text to subscript. super Vertically aligns the text to superscript. top Vertically aligns the contents of an object supporting the VALIGN attribute to the top of the object. middle Vertically aligns the contents of an object supporting the VALIGN attribute to the middle of the object. bottom Vertically aligns the contents of an object supporting the VALIGN attribute to the bottom of the object. text-top Vertically aligns the text of an object supporting the VALIGN attribute to the top of the object. text-bottom Vertically aligns the text of an object supporting the VALIGN attribute to the bottom of the object.
Return Value
Returns S_OK if successful, or an error value otherwise.
Applies To
HTML CAPTION, COL, IMG, SPAN, TABLE, TBODY, TD, TH, THEAD, TFOOT, TR Scripting currentStyle, style
See Also
put_vAlign
Sets how the text and other content of a table cell is vertically aligned in relation to one of the cell borders.
Syntax
HRESULT put_vAlign( BSTR v );
Parameters
- v
- String specifying the vertical alignment. Can be one of these strings:
baseline Aligns the contents of an object supporting the VALIGN attribute to the base line. sub Vertically aligns the text to subscript. super Vertically aligns the text to superscript. top Vertically aligns the contents of an object supporting the VALIGN attribute to the top of the object. middle Vertically aligns the contents of an object supporting the VALIGN attribute to the middle of the object. bottom Vertically aligns the contents of an object supporting the VALIGN attribute to the bottom of the object. text-top Vertically aligns the text of an object supporting the VALIGN attribute to the top of the object. text-bottom Vertically aligns the text of an object supporting the VALIGN attribute to the bottom of the object.
Return Value
Returns S_OK if successful, or an error value otherwise.
Applies To
HTML CAPTION, COL, IMG, SPAN, TABLE, TBODY, TD, TH, THEAD, TFOOT, TR Scripting currentStyle, style
See Also
get_vAlign
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.