public class SuperscriptRichStyle extends RichStyle
RichText instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
SuperscriptRichStyle() |
A constructor used to create a
SuperscriptRichStyle instance. |
public SuperscriptRichStyle()
SuperscriptRichStyle instance.
This method displays the text defined by RichText as superscripts.
The method reduces the text size to 2/3 of the original size and aligns the ascent of the text with that
of the line where the text is located. The line height, however, is not affected.
You can use RichText.removeRichStyle(RichStyle) to cancel this style.
RichText.removeRichStyle(RichStyle)