[]
        
立即试用
(Showing Draft Content)

BackgroundImageLayout

Enum Class BackgroundImageLayout

java.lang.Object
java.lang.Enum<BackgroundImageLayout>
com.grapecity.documents.excel.BackgroundImageLayout
All Implemented Interfaces:
Serializable, Comparable<BackgroundImageLayout>, Constable

public enum BackgroundImageLayout extends Enum<BackgroundImageLayout>
指定如何拉伸背景图像以填充目标矩形。
  • Enum Constant Details

    • Stretch

      public static final BackgroundImageLayout Stretch
      指定调整图像大小以填充目标尺寸。宽高比不会被保持。
    • Center

      public static final BackgroundImageLayout Center
      指定在目标矩形内将图像居中对齐。
    • Zoom

      public static final BackgroundImageLayout Zoom
      指定调整图像大小以适应目标尺寸,同时保持图像的原始宽高比。
    • None

      public static final BackgroundImageLayout None
      指定将图像左对齐并显示在目标矩形的顶部。
  • Method Details

    • values

      public static BackgroundImageLayout[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BackgroundImageLayout valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      获取表示枚举常量的整数值。
      Returns:
      枚举常量的序数值。
    • forValue

      public static BackgroundImageLayout forValue(Integer value)
      根据指定的整数值获取对应的枚举常量。
      Parameters:
      value - 表示枚举常量的整数值。
      Returns:
      BackgroundImageLayout 枚举常量。