valueAsString
a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
TOC
Collapse the table of content
Expand the table of content

valueAsString property

Gets or sets the string form of the value property, in the units that svgUnitTypes specifies.

Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.11

 

Syntax

JavaScript
p = object.valueAsString

 

Property values

Type: String

The string version of value.

Exceptions

ExceptionCondition
SyntaxError

An invalid string value is specified. For versions earlier than a Windows Store app using JavaScript, DOM_SYNTAX_ERR is returned.

NoModificationAllowedError

An attempt is made to modify an object that cannot be changed. For versions earlier than a Windows Store app using JavaScript, NO_MODIFICATION_ALLOWED_ERR is returned.

 

Standards information

Remarks

If you set the valueAsString property, the value, valueInSpecifiedUnits, and svgUnitTypes properties are updated automatically to reflect this setting.

See also

SVGAngle
SVGLength

 

 

Show:
© 2017 Microsoft