IHTMLElement2::removeExpression method

[This documentation is preliminary and is subject to change.]

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 setExpression method, use 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 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

DLL

Mshtml.dll

See also

IHTMLElement2

Reference

getExpression

recalc

Conceptual

About Dynamic Properties

 

 

Build date: 1/23/2012