IHTMLStyle2::removeExpression method

This element is obsolete and should no longer be used. Removes the expression from the specified property.

Syntax

Boolean* removeExpression(
  [in] BSTR sPropertyName
);

Parameters

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

Return value

Pointer to a VARIANT_BOOL that returns one of the following possible values:

Return value Description
true

The expression was successfully removed.

false

The expression was not removed.

 

Remarks

After the expression is removed from the specified property, the value of the property equals the last computed value of the expression. To remove expressions set by the IHTMLStyle2::setExpression method, use IHTMLStyle2::removeExpression.

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

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

    object.removeExpression(sPropertyName)
    
  • Use this syntax to remove an expression from a CSS attribute.

    object.style.removeExpression(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

IHTMLStyle2::getExpression

IHTMLDocument3::recalc

Conceptual

About Dynamic Properties