Class ShapeRegion
Where a shape is on a page (Phase 164): its frame before it is turned, how it is turned and mirrored, and the document node it was drawn from. A consumer selects, hit-tests and drags a shape with it, without re-deriving the geometry from the paths that draw it.
public sealed class ShapeRegion : ILayoutPrimitive
- Inheritance
-
ShapeRegion
- Implements
- Inherited Members
Remarks
Layout emits one per shape drawn when source references are on (LayoutEngine.EmitSourceReferences,
LayoutSessionOptions.EmitSourceReferences), just before the shape's paths, in the same paint band. The
frame is the box the shape's geometry fills (wp:extent); a turned shape is drawn turned about the frame's
centre.
Renderers ignore it: a PDF or an image is the same bytes with or without it.
Constructors
- ShapeRegion(Twips, Twips, Twips, Twips, long, int, bool, bool)
Initializes a region.
Properties
- FlipHorizontal
Gets whether the shape is mirrored left to right.
- FlipVertical
Gets whether the shape is mirrored top to bottom.
- Height
Gets the frame's height.
- Rotation
Gets the clockwise rotation in 60000ths of a degree.
- SourceKey
Gets the node key of the shape drawn.
- Width
Gets the frame's width.
- X
Gets the frame's left.
- Y
Gets the frame's top.
Methods
- WithBounds(Twips, Twips, Twips, Twips)
The same region at another place: what a turned frame maps it to.