GeneralDiagramSelectionRules.GetCompliantSelection Yöntem

Tanım

Seçim filtrelemesine izin vermek için tasarım yüzeyi tarafından çağırılır

public:
 override bool GetCompliantSelection(Microsoft::VisualStudio::Modeling::Diagrams::SelectedShapesCollection ^ currentSelection, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ proposedItemsToAdd, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ proposedItemsToRemove, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ primaryItem);
public override bool GetCompliantSelection (Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection currentSelection, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection proposedItemsToAdd, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection proposedItemsToRemove, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem primaryItem);
override this.GetCompliantSelection : Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> bool
Public Overrides Function GetCompliantSelection (currentSelection As SelectedShapesCollection, proposedItemsToAdd As DiagramItemCollection, proposedItemsToRemove As DiagramItemCollection, primaryItem As DiagramItem) As Boolean

Parametreler

currentSelection
SelectedShapesCollection

'ndaki Herhangi bir ShapeElements eklenmeden veya kaldırılmadan önce geçerli seçim.

proposedItemsToAdd
DiagramItemCollection
proposedItemsToRemove
DiagramItemCollection
primaryItem
DiagramItem

Döndürülenler

Boolean

seçimin bir kısmı veya tümü kabul edildiyse true; seçim teklifinin tamamı reddedildiyse false. Yanlışsa, seçimin reddedildiğini belirtmek için kullanıcıya uygun geri bildirim verilir.

Şunlara uygulanır