Search
DiagramView.ViewToDiagram Method (Rect)
See Also
 






Transforms specified rectangle from view to diagram coordinates.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Rect ViewToDiagram (
    Rect viewRect
)

Visual Basic  Copy Code

Public Function ViewToDiagram( _
    viewRect As Rect _
) As Rect

 Parameters

viewRect

An instance of the Microsoft.Maui.Graphics.Rect structure, whose coordinates should be transformed and returned.

 Return Value

A Microsoft.Maui.Graphics.Rect instance, which represents the diagram coordinates of viewRect.

 Remarks

This method is useful when the diagram coordinates of a view rectangle are needed, with measure unit, zoom level and scroll position considered.

 See Also