ICSSStyleDeclaration.GetPropertyCSSValue

ICSSStyleDeclaration.GetPropertyCSSValue method

Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns null if the property is a shorthand property. Shorthand property values can only be accessed and modified as strings, using the getPropertyValue and setProperty methods.

public CSSValue GetPropertyCSSValue(string propertyName)
ParameterTypeDescription
propertyNameStringpropertyName is a string representing the property name to be retrieved.

Return Value

value is a CSSValue containing the CSS value for a property. If none exists, returns null.

See Also