---
title: "SVGLength.ValueAsString"
url: "https://reference.aspose.com/html/net/aspose.html.dom.svg.datatypes/svglength/valueasstring/"
product: "Aspose.HTML for .NET API Reference"
description: "SVGLength ValueAsString property. The value as a string value in the units expressed by unitType. Setting this attribute will cause value valueInSpecifiedUnits and unitType to be updated automatically to reflect this setting"
---

## SVGLength.ValueAsString property

The value as a string value, in the units expressed by unitType. Setting this attribute will cause value, valueInSpecifiedUnits and unitType to be updated automatically to reflect this setting.

```csharp
public string ValueAsString { get; set; }
```

### Property Value

The value as string.

### Exceptions

| exception | condition |
| --- | --- |
| [DOMException](../../../aspose.html.dom/domexception/) | Code [`SYNTAX_ERR`](../../../aspose.html.dom/domexception/syntax_err/) Raised if the assigned string cannot be parsed as a valid length. |
| [DOMException](../../../aspose.html.dom/domexception/) | Code [`NO_MODIFICATION_ALLOWED_ERR`](../../../aspose.html.dom/domexception/no_modification_allowed_err/) Raised when the length corresponds to a read only attribute or when the object itself is read only. |

### See Also

* class [SVGLength](../)
* namespace [Aspose.Html.Dom.Svg.DataTypes](../../../aspose.html.dom.svg.datatypes/)
* assembly [Aspose.HTML](../../../)
