Freigeben über


IHTMLStyle2::getExpression method

This element is obsolete and should no longer be used. Retrieves the expression for the given property.

Syntax

Variant* getExpression(
  [in] BSTR sPropertyName
);

Parameters

  • sPropertyName [in]
    BSTR that specifies the name of the property from which to retrieve the expression.

Return value

Pointer to a variant value representing the expression of the property.

Remarks

The following syntax sections show how to retrieve an expression from supported Cascading Style Sheets (CSS) and DHTML Properties.

  • Use this syntax to retrieve an expression from a read/write property or from an IHTMLDocument2::expando property.

    var sExpression = object.getExpression(sPropertyName)
    
  • Use this syntax to retrieve an expression from a CSS attribute.

    var sExpression = object.style.getExpression(sPropertyName)
    

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLStyle2

Reference

IHTMLDocument3::recalc

IHTMLStyle2::removeExpression

IHTMLStyle2::setExpression

Conceptual

CSS Attributes: Index

About Dynamic Properties