[]
        
立即试用
(Showing Draft Content)

FontInfo

Class FontInfo

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

public final class FontInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    一个布尔值,表示字体是否加粗。
    boolean
    一个布尔值,表示字体是否为斜体。
    获取或设置字体名称。
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    检查字体信息是否与另一个对象相等。
    int
    返回此实例的哈希码。

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      public String name
      获取或设置字体名称。
    • bold

      public boolean bold
      一个布尔值,表示字体是否加粗。
    • italic

      public boolean italic
      一个布尔值,表示字体是否为斜体。
  • Constructor Details

    • FontInfo

      public FontInfo()
  • Method Details

    • equals

      public boolean equals(Object obj)
      检查字体信息是否与另一个对象相等。
      Overrides:
      equals in class Object
      Parameters:
      obj - 另一个字体信息对象。
      Returns:
      如果指定的对象与此对象相等,则返回True;否则返回False。
    • hashCode

      public int hashCode()
      返回此实例的哈希码。
      Overrides:
      hashCode in class Object
      Returns:
      此实例的哈希码,适用于哈希算法和哈希表等数据结构。