
## set_string_value {#int-str}

A method to set the string value with the specified unit. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DOMException will be raised.



```python
def set_string_value(self, string_type, string_value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| string_type | int | Type of the string. |
| string_value | str | The string value. |



### See Also
* module [`aspose.svg.dom.css`](../../)
* class [`CSSPrimitiveValue`](/svg/python-net/aspose.svg.dom.css/cssprimitivevalue)
