[]
        
(Showing Draft Content)

ZOrderType

Enum Class ZOrderType

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

public enum ZOrderType extends Enum<ZOrderType>
Specifies where a shape should be moved in the z-order relative to other shapes.

Use this enum with IShape.zOrder(ZOrderType) to bring a shape forward, send it backward, move it to the front, or move it to the back of the shape collection.


 IShape rectangle = worksheet.getShapes().addShape("rectangle", AutoShapeType.Rectangle, 20, 20, 80, 50);
 IShape oval = worksheet.getShapes().addShape("oval", AutoShapeType.Oval, 40, 40, 80, 50);
 rectangle.zOrder(ZOrderType.BringToFront);
 oval.zOrder(ZOrderType.SendBackward);
 
  • Enum Constant Details

    • BringToFront

      public static final ZOrderType BringToFront
      Brings the shape to the front of the z-order, in front of all other shapes in the collection.
    • SendToBack

      public static final ZOrderType SendToBack
      Sends the shape to the back of the z-order, behind all other shapes in the collection.
    • BringForward

      public static final ZOrderType BringForward
      Brings the shape one position forward in the z-order relative to other shapes.
    • SendBackward

      public static final ZOrderType SendBackward
      Sends the shape one position backward in the z-order relative to other shapes.
  • Method Details

    • values

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