Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  Reusing Browser Technology

IHTMLTableCell::get_vAlign Method


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:

baselineAligns the contents of an object supporting the VALIGN attribute to the base line.
subVertically aligns the text to subscript.
superVertically aligns the text to superscript.
topVertically aligns the contents of an object supporting the VALIGN attribute to the top of the object.
middleVertically aligns the contents of an object supporting the VALIGN attribute to the middle of the object.
bottomVertically aligns the contents of an object supporting the VALIGN attribute to the bottom of the object.
text-topVertically aligns the text of an object supporting the VALIGN attribute to the top of the object.
text-bottomVertically 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


IHTMLTableCell::put_vAlign Method

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:

baselineAligns the contents of an object supporting the VALIGN attribute to the base line.
subVertically aligns the text to subscript.
superVertically aligns the text to superscript.
topVertically aligns the contents of an object supporting the VALIGN attribute to the top of the object.
middleVertically aligns the contents of an object supporting the VALIGN attribute to the middle of the object.
bottomVertically aligns the contents of an object supporting the VALIGN attribute to the bottom of the object.
text-topVertically aligns the text of an object supporting the VALIGN attribute to the top of the object.
text-bottomVertically 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!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site