PlaceholderVerticalAlign
value class PlaceholderVerticalAlign
internal constructor(@Suppress("unused") private val value: Int)
The settings used to specify how a placeholder is vertically aligned within a text line.
Companion Object
Properties
val AboveBaseline = PlaceholderVerticalAlign(1)
Align the bottom of the placeholder with the baseline.
val Top = PlaceholderVerticalAlign(2)
Align the top of the placeholder with the top of the entire line.
val Bottom = PlaceholderVerticalAlign(3)
Align the bottom of the placeholder with the bottom of the entire line.
val Center = PlaceholderVerticalAlign(4)
Align the center of the placeholder with the center of the entire line.
val TextTop = PlaceholderVerticalAlign(5)
Align the top of the placeholder with the top of the proceeding text. It is different
from the Top
when there are texts with different font size, font or other styles in the
same line. This option will use the proceeding text's top instead of the whole line's
top.
val TextBottom = PlaceholderVerticalAlign(6)
Align the bottom of the placeholder with the bottom of the proceeding text. It is
different from the TextBottom
when there are texts with different font size, font or
other styles in the same line. This option will use the proceeding text's bottom instead
of the whole line's bottom.
val TextCenter = PlaceholderVerticalAlign(7)
Align the center of the placeholder with the center of the proceeding text. It is
different from the Center
when there are texts with different font size, font or other
styles in the same line. This option will use the proceeding text's center instead of the
whole line's center.