IHTMLElement2::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 valueDescription
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 IHTMLElement2::setExpression method, use IHTMLElement2::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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLElement2
Reference
IHTMLElement2::getExpression
IHTMLDocument3::recalc
Conceptual
About Dynamic Properties

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.