Freigeben über


ShapeElement.TranslateToRelativeBounds(RectangleD) Method

Definition

Translates a rectangle from absolute world coordinates to coordinates relative to the parent shape.

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

Parameters

absoluteBounds
RectangleD

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

Returns

The rectangle relative to the parent ShapeElement's top-left corner.

Applies to