更新 GhostShapeCollection,以便其在应用建议的位置增量后符合 GroupBoundsRules。 约束子形状组总体边界的 GroupBoundsRule,以便它保持并在父形状的下方及顶部和左边界的右侧。 父形状的右侧和底部边将不会约束子形状。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Overrides Sub GetCompliantGroupBounds ( _
store As Store, _
targetShape As ShapeElement, _
ghostShapes As GhostShapeCollection, _
proposedLocationDelta As PointD _
)
public override void GetCompliantGroupBounds(
Store store,
ShapeElement targetShape,
GhostShapeCollection ghostShapes,
PointD proposedLocationDelta
)
参数
- store
类型:Microsoft.VisualStudio.Modeling.Store
包含阴影形状所指的 ShapeElements 的存储。
- targetShape
类型:Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
如果重新设置源形状的父级或对其进行复制,则为目标父级形状。在此参数可为空的情况下,要对该源形状进行重新定位。
- ghostShapes
类型:Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
描述建议位置增量前的虚影形状集合。此方法应修改阴影形状属性,以便在应用建议的位置增量后,该属性与此规则保持一致。
- proposedLocationDelta
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
全局单位中要应用到组中的各个形状的建议位置增量。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。