public class UnderlineRichStyle extends RichStyle
RichText instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
UnderlineRichStyle() |
A constructor used to create an
UnderlineRichStyle instance. |
UnderlineRichStyle(Color color) |
A constructor used to create a
UnderlineRichStyle instance based on the specified color. |
public UnderlineRichStyle()
UnderlineRichStyle instance.
This method displays the text defined by RichText as underlined.
When this method is used, the underline color is the same as the text color.
You can use RichText.removeRichStyle(RichStyle) to cancel this style.
RichText.removeRichStyle(RichStyle)public UnderlineRichStyle(Color color)
UnderlineRichStyle instance based on the specified color.
This method displays the text defined by RichText as underlined in your specified
color.
You can use RichText.removeRichStyle(RichStyle) to cancel this style.
color - Indicates the underline color.RichText.removeRichStyle(RichStyle)