Compartilhar via


IGeometryHost.TranslateGeometryToRelativeBounds(RectangleD) Method

Definition

Translates a rectangle from absolute world coordinates to coordinates relative to the top-left of the IGeometryHost's parent.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::RectangleD TranslateGeometryToRelativeBounds(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD absoluteBounds);
public Microsoft.VisualStudio.Modeling.Diagrams.RectangleD TranslateGeometryToRelativeBounds (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD absoluteBounds);
abstract member TranslateGeometryToRelativeBounds : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Function TranslateGeometryToRelativeBounds (absoluteBounds As RectangleD) As RectangleD

Parameters

absoluteBounds
RectangleD

The rectangle in world units relative to the Diagram's top-left.

Returns

The rectangle relative to the top-left of the IGeometryHost's parent.

Applies to