Compartilhar via


ShapeElement.TranslateGeometryToRelativeBounds(RectangleD) Method

Definition

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

public:
 virtual 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
override this.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.

Implements

Applies to