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: RectangleThe bounds the visual would have, given the bounds of a visualization area.
Exceptions
Exception | Condition |
---|---|
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
The returned rectangle is not adjusted for margins.
Version Information
See Also