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

Workshop  |  Reusing Browser Technology

IHTMLIFrameElement::get_align Method


Retrieves how the element is aligned with adjacent text.

Syntax

HRESULT get_align(
    BSTR *p
);

Parameters

p
Address of a variable that receives the alignment. Can be one of these values:

absbottom Aligns the bottom of the element with the absolute bottom of the surrounding text. The absolute bottom is equal to the baseline of the text minus the height of the largest descender in the text.
absmiddle Aligns the middle of the element with the middle of the surrounding text. The absolute middle is the midpoint between the absolute bottom and texttop of the surrounding text.
baseline Aligns the bottom of the element with the baseline of the surrounding text.
bottom Aligns the bottom of the element with the bottom of the surrounding text. The bottom is equal to the baseline minus the standard height of a descender in the text.
left Aligns the element to the left of the surrounding text. All preceding and subsequent text flows to the right of the element. This is the default value.
middle Aligns the middle of the element with the surrounding text.
right Aligns the element to the right of the surrounding text. All subsequent text flows to the left of the element.
texttop Aligns the top of the element with the absolute top of the surrounding text. The absolute top is the baseline plus the height of the largest ascender in the text.
top Aligns the top of the element with the top of the text. The top of the text is the baseline plus the standard height of an ascender in the text.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

For the INPUT element, this attribute applies only to the image type. It is undefined for all other types.

See Also

put_align


IHTMLIFrameElement::put_align Method

Sets how the element is aligned with adjacent text.

Syntax

HRESULT put_align(
    BSTR v
);

Parameters

v
String specifying the alignment. Can be one of these values:

absbottom Aligns the bottom of the element with the absolute bottom of the surrounding text. The absolute bottom is equal to the baseline of the text minus the height of the largest descender in the text.
absmiddle Aligns the middle of the element with the middle of the surrounding text. The absolute middle is the midpoint between the absolute bottom and texttop of the surrounding text.
baseline Aligns the bottom of the element with the baseline of the surrounding text.
bottom Aligns the bottom of the element with the bottom of the surrounding text. The bottom is equal to the baseline minus the standard height of a descender in the text.
left Aligns the element to the left of the surrounding text. All preceding and subsequent text flows to the right of the element. This is the default value.
middle Aligns the middle of the element with the surrounding text.
right Aligns the element to the right of the surrounding text. All subsequent text flows to the left of the element.
texttop Aligns the top of the element with the absolute top of the surrounding text. The absolute top is the baseline plus the height of the largest ascender in the text.
top Aligns the top of the element with the top of the text. The top of the text is the baseline plus the standard height of an ascender in the text.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

For the INPUT element, this attribute applies only to the image type. It is undefined for all other types.

See Also

get_align, IHTMLIFrameElement


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