KeepGroupWithinDiagramRule.GetCompliantGroupBounds 方法

定义

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

此 GroupBoundsRule 将限制一组子形状的整体边界,使其保持在父形状的顶部和左侧边界的下方和右侧。 父形状的右边缘和下边缘不会约束子形状。

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

参数

store
Store

包含虚影形状所引用的 ShapeElements 的存储区。

targetShape
ShapeElement

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

ghostShapes
GhostShapeCollection

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

proposedLocationDelta
PointD

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

适用于