Constructor ShapeRegion
ShapeRegion(Twips, Twips, Twips, Twips, long, int, bool, bool)
Initializes a region.
public ShapeRegion(Twips x, Twips y, Twips width, Twips height, long sourceKey, int rotation, bool flipHorizontal, bool flipVertical)
Parameters
xTwipsThe frame's left.
yTwipsThe frame's top.
widthTwipsThe frame's width.
heightTwipsThe frame's height.
sourceKeylongThe node key of the shape drawn (
ShapeRef.NodeId).rotationintThe clockwise rotation in 60000ths of a degree, 0 to under 21600000.
flipHorizontalboolWhether the shape is mirrored left to right.
flipVerticalboolWhether the shape is mirrored top to bottom.
Exceptions
- ArgumentOutOfRangeException
A size is negative, or the rotation is outside a turn.