ShapeElement.TranslateToRelativeBounds(RectangleD) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.