TryGetViewportShowing(AccessibleNode, out Viewport) Method

Definition

Assembly Broadside.Viewer.dll

Returns the viewport that brings a node into view with the least scrolling from the last viewport.

public bool TryGetViewportShowing(AccessibleNode node, scoped out Viewport viewport)

Parameters

node
AccessibleNode

The node.

viewport
Viewport

The viewport showing the node.

Returns

Boolean
True when the viewport must move; false when the node is in view, has no bounds, or there is no layout.