SVGLength object
Corresponds to the length basic data type.
![]() ![]() |
Members
The SVGLength object has these types of members:
Methods
The SVGLength object has these methods.
| Method | Description |
|---|---|
| convertToSpecifiedUnits |
Changes the stored unit identifier to the specified type. |
| newValueSpecifiedUnits |
Resets the specified value as a number with the specified unit type, replacing the values for all of the attributes on the object. |
Properties
The SVGLength object has these properties.
| Property | Description |
|---|---|
|
Gets or sets a value that indicates the type of length units. | |
|
Gets or sets the value of the given attribute. | |
|
Gets or sets the string form of the value property, in the units that svgUnitTypes specifies. | |
|
Gets or sets the length or angle value, as a floating point number, in the units that svgUnitTypes specifies. |
Standards information
- Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.11
Remarks
You can designate an SVGLength object as read-only, so that attempts to modify the object raises an NoModificationAllowedError exception.

