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

Workshop  |  Reusing Browser Technology

IHTMLStyle Interface


This interface provides access to the methods that are returned when you access the style object. A style object represents the current settings of all possible inline styles for a given element. Inline styles are cascading style sheet (CSS) assignments that an author applies directly to individual HTML elements using the IHTMLStyle attribute. You use the style object to examine these assignments and either make new assignments or change existing ones.

You retrieve the style object by using the IHTMLElement::get_style function. You retrieve the current setting for an inline style by calling member functions of the style object.

The style object does not give access to the style assignments in style sheets. You can use the IHTMLStyleSheetsCollection interface to gain access to the individual style sheets defined in the document.

IHTMLStyle Methods

getAttribute   get_background   get_backgroundAttachment  
get_backgroundColor   get_backgroundImage   get_backgroundPosition  
get_backgroundPositionX   get_backgroundPositionY   get_backgroundRepeat  
get_border   get_borderBottom   get_borderBottomColor  
get_borderBottomStyle   get_borderBottomWidth   get_borderColor  
get_borderLeft   get_borderLeftColor   get_borderLeftStyle  
get_borderLeftWidth   get_borderRight   get_borderRightColor  
get_borderRightStyle   get_borderRightWidth   get_borderStyle  
get_borderTop   get_borderTopColor   get_borderTopStyle  
get_borderTopWidth   get_borderWidth   get_clear  
get_clip   get_color   get_cssText  
get_cursor   get_display   get_filter  
get_font   get_fontFamily   get_fontSize  
get_fontStyle   get_fontVariant   get_fontWeight  
get_height   get_left   get_letterSpacing  
get_lineHeight   get_listStyle   get_listStyleImage  
get_listStylePosition   get_listStyleType   get_margin  
get_marginBottom   get_marginLeft   get_marginRight  
get_marginTop   get_overflow   get_padding  
get_paddingBottom   get_paddingLeft   get_paddingRight  
get_paddingTop   get_pageBreakAfter   get_pageBreakBefore  
get_pixelHeight   get_pixelLeft   get_pixelTop  
get_pixelWidth   get_posHeight   get_position  
get_posLeft   get_posTop   get_posWidth  
get_styleFloat   get_textDecoration   get_textDecorationBlink  
get_textDecorationLineThrough   get_textDecorationNone   get_textDecorationOverline  
get_textDecorationUnderline   get_textIndent   get_textTransform  
get_top   get_verticalAlign   get_visibility  
get_whiteSpace   get_width   get_wordSpacing  
get_zIndex   put_background   put_backgroundAttachment  
put_backgroundColor   put_backgroundImage   put_backgroundPosition  
put_backgroundPositionX   put_backgroundPositionY   put_backgroundRepeat  
put_border   put_borderBottom   put_borderBottomColor  
put_borderBottomStyle   put_borderBottomWidth   put_borderColor  
put_borderLeft   put_borderLeftColor   put_borderLeftStyle  
put_borderLeftWidth   put_borderRight   put_borderRightColor  
put_borderRightStyle   put_borderRightWidth   put_borderStyle  
put_borderTop   put_borderTopColor   put_borderTopStyle  
put_borderTopWidth   put_borderWidth   put_clear  
put_clip   put_color   put_cssText  
put_cursor   put_display   put_filter  
put_font   put_fontFamily   put_fontSize  
put_fontStyle   put_fontVariant   put_fontWeight  
put_height   put_left   put_letterSpacing  
put_lineHeight   put_listStyle   put_listStyleImage  
put_listStylePosition   put_listStyleType   put_margin  
put_marginBottom   put_marginLeft   put_marginRight  
put_marginTop   put_overflow   put_padding  
put_paddingBottom   put_paddingLeft   put_paddingRight  
put_paddingTop   put_pageBreakAfter   put_pageBreakBefore  
put_pixelHeight   put_pixelLeft   put_pixelTop  
put_pixelWidth   put_posHeight   put_posLeft  
put_posTop   put_posWidth   put_styleFloat  
put_textAlign   put_textDecoration   put_textDecorationBlink  
put_textDecorationLineThrough   put_textDecorationNone   put_textDecorationOverline  
put_textDecorationUnderline   put_textIndent   put_textTransform  
put_top   put_verticalAlign   put_visibility  
put_whiteSpace   put_width   put_wordSpacing  
put_zIndex   removeAttribute   setAttribute  
toString  

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