接口 IFontFormat


public interface IFontFormat
Represents font attributes (for example, font name, font size, and color) for an object.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Gets the boolean property that indicates whether the represented text is bold.
    Gets the color format.
    boolean
    Gets the boolean property that indicates whether the represented text is italicized.
    Gets the font name to use for the represented text.
    double
    Gets the size of the font in points.
    boolean
    Gets the boolean property that indicates whether the represented text has a strike through it.
    boolean
    Gets the boolean property that indicates whether the represented text is a subscript.
    boolean
    Gets the boolean property that indicates whether the represented text is a superscript.
    Gets the theme font in the applied font scheme that is associated with the specified object.
    Gets the UnderlineStyle of the represented text.
    void
    setBold(boolean value)
    Sets the boolean property that indicates whether the represented text is bold.
    void
    setItalic(boolean value)
    Sets the boolean property that indicates whether the represented text is italicized.
    void
    setName(String value)
    Sets the font name to use for the represented text.
    void
    setSize(double value)
    Sets the size of the font in points.
    void
    setStrikethrough(boolean value)
    Sets the boolean property that indicates whether the represented text has a strike through it.
    void
    setSubscript(boolean value)
    Sets the boolean property that indicates whether the represented text is a subscript.
    void
    setSuperscript(boolean value)
    Sets the boolean property that indicates whether the represented text is a superscript.
    void
    Sets the theme font in the applied font scheme that is associated with the specified object.
    void
    Sets the UnderlineStyle of the represented text.
  • 方法详细资料

    • getColor

      IColorFormat getColor()
      Gets the color format.
    • getBold

      boolean getBold()
      Gets the boolean property that indicates whether the represented text is bold.
    • setBold

      void setBold(boolean value)
      Sets the boolean property that indicates whether the represented text is bold.
    • getItalic

      boolean getItalic()
      Gets the boolean property that indicates whether the represented text is italicized.
    • setItalic

      void setItalic(boolean value)
      Sets the boolean property that indicates whether the represented text is italicized.
    • getName

      String getName()
      Gets the font name to use for the represented text.
    • setName

      void setName(String value)
      Sets the font name to use for the represented text.
    • getSize

      double getSize()
      Gets the size of the font in points.
    • setSize

      void setSize(double value)
      Sets the size of the font in points.
    • getStrikethrough

      boolean getStrikethrough()
      Gets the boolean property that indicates whether the represented text has a strike through it.
    • setStrikethrough

      void setStrikethrough(boolean value)
      Sets the boolean property that indicates whether the represented text has a strike through it.
    • getSubscript

      boolean getSubscript()
      Gets the boolean property that indicates whether the represented text is a subscript.
    • setSubscript

      void setSubscript(boolean value)
      Sets the boolean property that indicates whether the represented text is a subscript.
    • getSuperscript

      boolean getSuperscript()
      Gets the boolean property that indicates whether the represented text is a superscript.
    • setSuperscript

      void setSuperscript(boolean value)
      Sets the boolean property that indicates whether the represented text is a superscript.
    • getUnderline

      TextUnderlineType getUnderline()
      Gets the UnderlineStyle of the represented text.
    • setUnderline

      void setUnderline(TextUnderlineType value)
      Sets the UnderlineStyle of the represented text.
    • getThemeFont

      ThemeFont getThemeFont()
      Gets the theme font in the applied font scheme that is associated with the specified object.
    • setThemeFont

      void setThemeFont(ThemeFont value)
      Sets the theme font in the applied font scheme that is associated with the specified object.