PeachDrawing.Win2D

A link a document drew: an area of the canvas that leads to an address or to a named place in the same document.

public sealed record Win2dLink : System.IEquatable<PeachDrawing.Win2D.Win2dLink>

Inheritance System.Object → Win2dLink

Implements System.IEquatable<Win2dLink>

Constructors  
Win2dLink(Rect, IReadOnlyList<PaintPoint>, string, string) A link a document drew: an area of the canvas that leads to an address or to a named place in the same document.
Properties  
Bounds the clickable area, in the canvas’s layout units
Destination the name of the place in the document the link leads to, or null for a link to an address
Quad the four corners (top-left, top-right, bottom-left, bottom-right) when the area is not Bounds itself, as for a rotated element; otherwise null
Uri the address the link leads to, or null for a link to a place in the document
Methods  
Contains(double, double) Whether x, y (layout units) is inside the clickable area.