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: RectangleCurrent bounds.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If visual is null. |
ArgumentException | If visual is not part of the Visuals collection on this page. |
Remarks
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
See Also