Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the expression for the given property.
Syntax
HRESULT getExpression( BSTR sPropertyName, VARIANT * pExpression );
Parameters
- sPropertyName
- Required. Name of the attribute to which sExpression will be added.
- pExpression
- Required. Variant. Returns a variant value representing the expression of the property.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
To remove an expression and replace the property value with the "system default" value, use the form elem.style.removeExpression("color").
To remove an expression and replace the value with a static value, use elem.style.removeExpression("color") followed by elem.style.color = "red".
To remove an expression and replace it with the current value (recalculated value) use temp = elem.style.color, then elem.style.removeExpression("color"), and then elem.style.color = temp.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.