ShapeSubField.GetBounds(ShapeElement, ShapeField) 方法

定义

返回世界坐标中相对于父形状的左上角的边界。

public:
 abstract Microsoft::VisualStudio::Modeling::Diagrams::RectangleD GetBounds(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ parentField);
public abstract Microsoft.VisualStudio.Modeling.Diagrams.RectangleD GetBounds (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField parentField);
abstract member GetBounds : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public MustOverride Function GetBounds (parentShape As ShapeElement, parentField As ShapeField) As RectangleD

参数

parentShape
ShapeElement

此 ShapeSubField 的父 ShapeElement。

parentField
ShapeField

此 ShapeSubField 的父 ShapeField。

返回

RectangleD

世界坐标中相对于父形状的左上角的边界。

适用于