MSHTML Classes: CStyleElement

An instance of the CStyleElement class is created for each STYLE tag.

Identifiers

coclass: HTMLStyleElement {3050F37D-98B5-11CF-BB82-00AA00BDCE0B}
dispinterface: DispHTMLStyleElement {3050F511-98B5-11CF-BB82-00AA00BDCE0B}

Scripting

The table below lists the interface members that the CStyleElement class exposes as properties (methods, collections, etc) through its string table in addition to the very many properties that are common to all elements.

Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted yellow. Properties that are listed but not as applying to the style element are shaded yellow.

Property Attribute Interface Member
appendChild   IHTMLDOMNode appendChild
attributes   IHTMLDOMNode get_attributes
childNodes   IHTMLDOMNode get_childNodes
cloneNode   IHTMLDOMNode cloneNode
firstChild   IHTMLDOMNode get_firstChild
hasChildNodes   IHTMLDOMNode hasChildNodes
insertBefore   IHTMLDOMNode insertBefore
lastChild   IHTMLDOMNode get_lastChild
media same IHTMLStyleElement get_media
put_media
nextSibling   IHTMLDOMNode get_nextSibling
nodeName   IHTMLDOMNode get_nodeName
nodeType   IHTMLDOMNode get_nodeType
nodeValue   IHTMLDOMNode get_nodeValue
put_nodeValue
onload same IHTMLStyleElement get_onload
put_onload
onerror same IHTMLStyleElement get_onerror
put_onerror
ownerDocument   IHTMLDOMNode2 get_ownerDocument
parentNode   IHTMLDOMNode get_parentNode
previousSibling   IHTMLDOMNode get_previousSibling
removeChild   IHTMLDOMNode removeChild
removeNode   IHTMLDOMNode removeNode
replaceChild   IHTMLDOMNode replaceChild
replaceNode   IHTMLDOMNode replaceNode
styleSheet   IHTMLStyleElement get_styleSheet
swapNode   IHTMLDOMNode swapNode
type same IHTMLStyleElement get_type
put_type
uniqueID   IHTMLUniqueName get_uniqueID
uniqueNumber   IHTMLUniqueName get_uniqueNumber