类 TextFormatInfo

java.lang.Object
com.grapecity.documents.excel.TextFormatInfo

public class TextFormatInfo extends Object
Describes font and layout options for drawing text.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    final boolean
    Gets or sets the top-level font weight for the content of the element.
    final String
    Gets or sets a family of related fonts.
    final double
    Gets or sets the desired font size to use in points.
    final boolean
    Gets or sets the font style for the content of the element.
    final void
    setBold(boolean value)
    Gets or sets the top-level font weight for the content of the element.
    final void
    Gets or sets a family of related fonts.
    final void
    setFontSize(double value)
    Gets or sets the desired font size to use in points.
    final void
    setItalic(boolean value)
    Gets or sets the font style for the content of the element.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • TextFormatInfo

      public TextFormatInfo()
  • 方法详细资料

    • getFontFamily

      public final String getFontFamily()
      Gets or sets a family of related fonts.
    • setFontFamily

      public final void setFontFamily(String value)
      Gets or sets a family of related fonts.
    • getFontSize

      public final double getFontSize()
      Gets or sets the desired font size to use in points.
    • setFontSize

      public final void setFontSize(double value)
      Gets or sets the desired font size to use in points.
    • getBold

      public final boolean getBold()
      Gets or sets the top-level font weight for the content of the element.

      True if font weight is bold (700). Otherwise, font weight is normal or regular (400).

    • setBold

      public final void setBold(boolean value)
      Gets or sets the top-level font weight for the content of the element.

      True if font weight is bold (700). Otherwise, font weight is normal or regular (400).

    • getItalic

      public final boolean getItalic()
      Gets or sets the font style for the content of the element.

      True if font style is italic. Otherwise, font style is normal.

    • setItalic

      public final void setItalic(boolean value)
      Gets or sets the font style for the content of the element.

      True if font style is italic. Otherwise, font style is normal.