LengthType Enum

LengthType enumeration

Specifies the units of measurement for lengths in SVG.

public enum LengthType

Values

NameValueDescription
Number1Represents a numeric value without any unit. It is often interpreted in the context of other values or default units.
Percentage2Represents a percentage value, relative to another value or a bounding dimension.
Ems3Represents a length in ’ems’, a scalable unit that is relative to the current font size.
Exs4Represents a length in ’exs’, related to the x-height of the current font.
Px5Represents a length in pixels, a unit of measurement based on the digital representation of an image.
Cm6Represents a length in centimeters.
Mm7Represents a length in millimeters.
In8Represents a length in inches.
Pt9Represents a length in points, a traditional unit in typography. 1 point is approximately 1/72 of an inch.
Pc10Represents a length in picas, a typographic unit of measurement. 1 pica is equivalent to 12 points.

Remarks

This enumeration defines various units that can be used to specify lengths in SVG elements. These units include absolute measurements like pixels and centimeters, as well as relative measurements like percentages and ems.

See Also