[]
        
(Showing Draft Content)

Placement

Enum Class Placement

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

public enum Placement extends Enum<Placement>
Specifies how an object is attached to its underlying cells.

Use this enum to control whether a shape or control moves with cells, resizes with cells, or remains free floating when the worksheet layout changes.


 IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, 40, 40, 100, 60);
 shape.setPlacement(Placement.MoveAndSize);
 
  • Enum Constant Details

    • MoveAndSize

      public static final Placement MoveAndSize
      Specifies that an object is moved and sized with the cells.
    • Move

      public static final Placement Move
      Specifies that an object is moved with the cells.
    • FreeFloating

      public static final Placement FreeFloating
      Specifies that an object is free floating.
  • Method Details

    • values

      public static Placement[] 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 Placement 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