ICSSStyleDeclaration.CSSText

ICSSStyleDeclaration.CSSText property

The parsable textual representation of the declaration block (excluding the surrounding curly braces). Setting this attribute will result in the parsing of the new value and resetting of all the properties in the declaration block including the removal or addition of properties.

public string CSSText { get; set; }

Property Value

Setting this attribute changes the inline style. If you want a text representation of a computed declaration block, you can get it with JSON.stringify().

See Also