PageGetVisualBounds Method (Visual)

Spotfire 14.3 API Reference
Gets the bounds of a visual in the user interface.

Namespace:  Spotfire.Dxp.Application
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public Rectangle GetVisualBounds(
	Visual visual
)

Parameters

visual
Type: Spotfire.Dxp.ApplicationVisual
The Visual to get the bounds for.

Return Value

Type: Rectangle
Current bounds.
Exceptions

ExceptionCondition
ArgumentNullException If visual is null.
ArgumentException If visual is not part of the Visuals collection on this page.
Remarks

This methods gets the current bounds of a visual in the user interface. In order to get a reliable and up to date result from this method, the user interface must be allowed to run its layout code. This can be forced by setting the ActivePageReference property on the document.

If no user interface is present, or if the user interface has not displayed this visual yet, the method returns Rectangle.Empty.

The rectangle is relative to the visualization area of a page. It is not adjusted for margins.

Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference