KeepGroupWithinParentRule.GetCompliantGroupBounds Yöntem

Tanım

, Önerilen konum Delta uygulandıktan sonra, GhostShapeCollection 'ı bu GroupBoundsRules ile uyumlu olacak şekilde güncelleştirir.

Bu GroupBoundsRule bir alt şekil grubunun genel sınırlarını, geçerli üst şeklin üst ve sol sınırlarının altına ve sağına doğru kalacak şekilde kısıtlar. Üst şeklin sağ ve alt tarafında alt şekiller sınırlandırılmayacak.

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)

Parametreler

store
Store

Hayalet şekillerin başvurduğu ShapeElements içeren depo.

targetShape
ShapeElement

(Bu kural, grubu geçerli üst şeklinin üst ve sol sınırlarıyla sınırlandırmasını amaçladığı için hedef şekil bu kural için yok sayılır.)

ghostShapes
GhostShapeCollection

Önerilen konum delmadan önce ShapeElements betimleyen hayalet şekiller koleksiyonu. Bu yöntem, önerilen konum Delta uygulandıktan sonra özelliklerin bu kuralla uyumlu olması için, hayalet şekil özelliklerini değiştirmeli.

proposedLocationDelta
PointD

Gruptaki her bir şekle uygulanacak dünya birimlerindeki önerilen konum Delta.

Şunlara uygulanır