PhotoshopCC 2015.5
Enumeration

ShapeOperation

Specifies how to combine the shapes if the destination image already has a selection.

Values

NameType AccessDescription
Int = 1 readonly Adds the shapes.
Int = 3 readonly The resulting shape is the area of intersection between the two shapes.
Int = 4 readonly Subtracts the loaded shape from the selection is the destination image.
Int = 2 readonly Replaces the shape in the destination image with the loaded selection.

Object of 2

Properties elsewhere that hold an ShapeOperation value.