[]
        
(Showing Draft Content)

TextFormatInfo

Class TextFormatInfo

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

public class TextFormatInfo extends Object
Describes font and layout options for drawing text.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Gets the top-level font weight for the content of the element.
    final String
    Gets a family of related fonts.
    final double
    Gets the desired font size to use in points.
    final boolean
    Gets the font style for the content of the element.
    final void
    setBold(boolean value)
    Sets the top-level font weight for the content of the element.
    final void
    Sets a family of related fonts.
    final void
    setFontSize(double value)
    Sets the desired font size to use in points.
    final void
    setItalic(boolean value)
    Sets the font style for the content of the element.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TextFormatInfo

      public TextFormatInfo()
  • Method Details

    • getFontFamily

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

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

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

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

      public final boolean getBold()
      Gets 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)
      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 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)
      Sets the font style for the content of the element.

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