PageGetVisualBounds Method (Visual, Rectangle) TIBCO Spotfire 7.6 API Reference
Gets the bounds of a visual given a rectangle defining a visualization area.

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,
	Rectangle visualizationAreaBounds
)

Parameters

visual
Type: Spotfire.Dxp.ApplicationVisual
A visual.
visualizationAreaBounds
Type: System.DrawingRectangle
A rectangle defining a visualization area.

Return Value

Type: Rectangle
The bounds the visual would have, given the bounds of a visualization area.
Exceptions

ExceptionCondition
ArgumentNullException If visual is null.
ArgumentException If visual is not part of the Visuals collection on this page, or visualizationAreaBounds does not have positive width or height.
Remarks

This method can be used together with the Visual.Render method to render the visuals on a page using the current page layout, but with a different visualization area size.

The returned rectangle 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