类 Wr


public class Wr extends Welement
  • 构造器详细资料

    • Wr

      public Wr(WDocument doc, org.dom4j.Element src)
  • 方法详细资料

    • getWts

      public List<Wt> getWts()
    • setColor

      public Wr setColor(String color)
      字体颜色
      参数:
      color - color
      返回:
      Wr
    • setFont

      public Wr setFont(String size, String eastAsia, String ascii, String hint)
      字体字号
      参数:
      size - 字号
      eastAsia - 中文字体
      ascii - 英文字体
      hint - 默认字体
      返回:
      Wr
    • setFontSize

      public Wr setFontSize(String size)
      字号
      参数:
      size - size
      返回:
      Wr
    • setFontFamily

      public Wr setFontFamily(String font)
      字体
      参数:
      font - font
      返回:
      Wr
    • setBackgroundColor

      public Wr setBackgroundColor(String color)
      背景色
      参数:
      color - color
      返回:
      Wr
    • setBold

      public Wr setBold(boolean bold)
      粗体
      参数:
      bold - 是否
      返回:
      Wr
    • setUnderline

      public Wr setUnderline(boolean underline)
      下划线
      参数:
      underline - 是否
      返回:
      Wr
    • setStrike

      public Wr setStrike(boolean strike)
      删除线
      参数:
      strike - 是否
      返回:
      Wr
    • setVerticalAlign

      public Wr setVerticalAlign(String align)
      垂直对齐方式
      参数:
      align - 上标:superscript 下标:subscript
      返回:
      Wr
    • setItalic

      public Wr setItalic(boolean italic)
    • removeStyle

      public Wr removeStyle()
      清除样式
      返回:
      wr
    • removeBackgroundColor

      public Wr removeBackgroundColor()
      清除背景色
      返回:
      wr
    • removeColor

      public Wr removeColor()
      清除颜色
      返回:
      wr
    • replace

      public Wr replace(String target, String replacement)
    • styles

      public LinkedHashMap<String,String> styles()
      覆盖:
      styles 在类中 Welement
    • html

      public String html()
      覆盖:
      html 在类中 Welement
    • html

      public String html(org.anyline.handler.Uploader uploader)
      覆盖:
      html 在类中 Welement
    • html

      public String html(org.anyline.handler.Uploader uploader, int lvl)
      覆盖:
      html 在类中 Welement