TryGetBounds(AccessibleNode, out LayoutRectangle) Method

Definition

Assembly Broadside.Viewer.dll

Returns a node's bounds in viewport pixels for the last Update(PageLayout, in Viewport).

public bool TryGetBounds(AccessibleNode node, scoped out LayoutRectangle bounds)

Parameters

node
AccessibleNode

The node.

bounds
LayoutRectangle

The bounds, from the viewport's top-left corner in device pixels.

Returns

Boolean
False when the bridge has no layout yet or the node has no bounds (the document, content with no geometry).