Gets the diagram model bounds corresponding to a rectangle on the display (in control coordinates). This method is used to compensate for the effects of zooming and scrolling on a DiagramSurface.

Namespace:  Mindscape.WpfDiagramming
Assembly:  Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public Rect GetLogicalBounds(
	Rect physicalBounds
)
Visual Basic (Declaration)
Public Function GetLogicalBounds ( _
	physicalBounds As Rect _
) As Rect

Parameters

physicalBounds
Type: System.Windows..::.Rect
The physical bounds, typically obtained from a tool drop event.

Return Value

A Rect containing the equivalent coordinates in the unscaled diagram model.

See Also