BaseLineShift enumeration

BaseLineShift enumeration

Specifies the vertical position of an element relative to its baseline in SVG.

The BaseLineShift type exposes the following members:

Fields

FieldDescription
SUBAligns the baseline of the element with the subscript baseline of the parent’s text.
SUPERAligns the baseline of the element with the superscript baseline of the parent’s text.
TOPAligns the top of the element with the top of the line box.
CENTERCenters the element in the line box.
BOTTOMAligns the bottom of the element with the bottom of the line box.

Remarks

The ‘baseline-shift’ attribute in SVG is used to adjust the vertical position of an element relative to its baseline, which is particularly useful in text rendering. This enum provides various options for shifting the baseline to achieve different text effects.

See Also