GroupSnapToGridRule.GetCompliantGroupBounds 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更新 GhostShapeCollection,使其在应用建议的位置增量后符合此 GroupBoundsRules。
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
要应用于组中的每个形状的以世界单位表示的建议位置增量。