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
propertyNameStringName of the property.

Return Value

Returns property value

See Also