BaseLineShift Enum

BaseLineShift enumeration

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

public enum BaseLineShift

Values

NameValueDescription
Sub0Aligns the baseline of the element with the subscript baseline of the parent’s text.
Super1Aligns the baseline of the element with the superscript baseline of the parent’s text.
Top2Aligns the top of the element with the top of the line box.
Center3Centers the element in the line box.
Bottom4Aligns 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