PageGetVisualBounds Method (Visual) TIBCO Spotfire 7.6 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: 25.11.10401.3615 (25.11.10401.3615)
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: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference