ShapeElement.TranslateToAbsoluteBounds(RectangleD) Method

Definition

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

C++
public:
 Microsoft::VisualStudio::Modeling::Diagrams::RectangleD TranslateToAbsoluteBounds(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD relativeBounds);

Parameters

relativeBounds
RectangleD

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

Returns

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

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022