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

Workshop  |  Reusing Browser Technology

IHTMLStyle2::get_tablelayout Method


This document describes technologies available in the Internet Explorer 5 Beta. While we encourage you to evaluate these features and to send us your feedback, please note that these features are subject to change.

Retrieves whether the table layout is fixed.

Syntax

HRESULT get_tablelayout(
    BSTR *p
);

Parameters

p
Address of a string structure that contains the table layout.

auto The column width is determined by the widest unbreakable content in the column cells.
fixed The table and column widths are set by either the sum of the widths on the COL objects or, if these are not specified, by the contents in the first row of cells.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If the width attribute is not set on the COL object, the columns are given equal widths, with the sum of the widths totaling the width of the TABLE.

If the content of a cell exceeds the fixed width of the column, the content will be wrapped or, if wrapping is not possible, it will be clipped. If the row height is specified, wrapped text will be clipped when it exceeds the set height.

Setting the property to fixed significantly improves the table rendering speed, particularly for longer tables.

Setting row height further improves rendering speed, again enabling the browser's parser to begin rendering the row without having to examine the content of each cell in the row to determine row height.

IHTMLStyle2::put_tablelayout Method

This document describes technologies available in the Internet Explorer 5 Beta. While we encourage you to evaluate these features and to send us your feedback, please note that these features are subject to change.

Sets whether the table layout is fixed.

Syntax

HRESULT put_tablelayout(
    BSTR v
);

Parameters

v
String (BSTR) that contains the tablelayout option to be set.

auto The column width is determined by the widest unbreakable content in the column cells.
fixed The table and column widths are set by either the sum of the widths on the COL objects or, if these are not specified, by the contents in the first row of cells.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If the width attribute is not set on the COL object, the columns are given equal widths, with the sum of the widths totaling the width of the TABLE.

If the content of a cell exceeds the fixed width of the column, the content will be wrapped or, if wrapping is not possible, it will be clipped. If the row height is specified, wrapped text will be clipped when it exceeds the set height.

Setting the property to fixed significantly improves the table rendering speed, particularly for longer tables.

Setting row height further improves rendering speed, again enabling the browser's parser to begin rendering the row without having to examine the content of each cell in the row to determine row height.


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