Table of Contents

Constructor ShapeRegion

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

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

x Twips

The frame's left.

y Twips

The frame's top.

width Twips

The frame's width.

height Twips

The frame's height.

sourceKey long

The node key of the shape drawn (ShapeRef.NodeId).

rotation int

The clockwise rotation in 60000ths of a degree, 0 to under 21600000.

flipHorizontal bool

Whether the shape is mirrored left to right.

flipVertical bool

Whether the shape is mirrored top to bottom.

Exceptions

ArgumentOutOfRangeException

A size is negative, or the rotation is outside a turn.