Table of Contents

Method WithBounds

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

WithBounds(Twips, Twips, Twips, Twips)

Returns a copy of this region with another position and size and everything else unchanged.

public LinkRegion WithBounds(Twips x, Twips y, Twips width, Twips height)

Parameters

x Twips

Left coordinate in twips.

y Twips

Top coordinate in twips.

width Twips

Width in twips.

height Twips

Height in twips.

Returns

LinkRegion

The moved copy.

Remarks

For code that maps primitives to another geometry, such as a page turned a quarter: rebuilding a region from its constructor's arguments loses whatever the constructor does not take, which is how a turned link once lost its structure element and text.