| Invalid Date
字数 0阅读时长 1 分钟
TextObject is a subclass of RichTextObject.

1. Class methods

text_object(value)

  • [PARAM] value
    • a text (String)
    • existing TextObject

2. Instance methods

bold=(flag) code=(flag) color=(color) italic=(flag) strikethrough=(flag) underline=(flag)

  • [PARAM] flag true if the RichTextObject is bold/code/italic/strikethrough/underline text
  • [PARAM] color color string for color=
bold=, code=, italic=, strikethrough= and underline= set the correspond flag. color= sets the object color.

text=(str)

  • [PARAM] str new text (String)
text= sets str to text and plain_text, and set will_update flag to true.
 
Loading...
目录