Diagram.GetCompliantGroupBounds 方法

定义

更新 GhostShapeCollection,使其在应用建议的位置增量后符合 GroupBoundsRules。

public:
 virtual void GetCompliantGroupBounds(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ targetShape, Microsoft::VisualStudio::Modeling::Diagrams::GhostShapeCollection ^ ghostShapes, Microsoft::VisualStudio::Modeling::Diagrams::PointD proposedLocationDelta);
public virtual void GetCompliantGroupBounds (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement targetShape, Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection ghostShapes, Microsoft.VisualStudio.Modeling.Diagrams.PointD proposedLocationDelta);
abstract member GetCompliantGroupBounds : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
override this.GetCompliantGroupBounds : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
Public Overridable Sub GetCompliantGroupBounds (targetShape As ShapeElement, ghostShapes As GhostShapeCollection, proposedLocationDelta As PointD)

参数

targetShape
ShapeElement

如果源形状被重定父级或重复,则为目标父形状。 此参数可以为 null,在这种情况下,将重新定位源形状。

ghostShapes
GhostShapeCollection

在建议的位置增量之前描述 ShapeElements 的虚影形状的集合。 此方法应修改虚影形状属性,以便在应用建议的位置增量后,属性符合此规则。

proposedLocationDelta
PointD

要应用于组中的每个形状的以世界单位表示的建议位置增量。

注解

如果此形状的 GroupBoundsRules 为空,则将改为使用形状的 diagram's GroupBoundsRules。

适用于