次の方法で共有


ShapeElement.TranslateToAbsoluteBounds(RectangleD) Method

Definition

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

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

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