Viewport Struct

Definition

The part of a PageLayout a shell shows: a scroll position and a size in viewport pixels, and a zoom in pixels per point.

public readonly record struct Viewport(double X, double Y, double Width, double Height, double Zoom) : IEquatable<Viewport>

Remarks

Spec #33 story 54 (viewer capability 14). Content narrower or shorter than the viewport is centred along that axis, and the scroll offset along it is then ignored.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (5)