Enum LengthType

Enum LengthType

Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)

Specifies the units of measurement for lengths in SVG.

[ComVisible(true)]
public enum LengthType

Fields

Cm = 6

Represents a length in centimeters.

Ems = 3

Represents a length in ’ems’, a scalable unit that is relative to the current font size.

Exs = 4

Represents a length in ’exs’, related to the x-height of the current font.

In = 8

Represents a length in inches.

Mm = 7

Represents a length in millimeters.

Number = 1

Represents a numeric value without any unit. It is often interpreted in the context of other values or default units.

Pc = 10

Represents a length in picas, a typographic unit of measurement. 1 pica is equivalent to 12 points.

Percentage = 2

Represents a percentage value, relative to another value or a bounding dimension.

Pt = 9

Represents a length in points, a traditional unit in typography. 1 point is approximately 1/72 of an inch.

Px = 5

Represents a length in pixels, a unit of measurement based on the digital representation of an image.

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.

 English