GeneralDiagramSelectionRules.GetCompliantSelection Method

This member overrides DiagramSelectionRules.GetCompliantSelection(SelectedShapesCollection, DiagramItemCollection, DiagramItemCollection, DiagramItem).

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public Overrides Function GetCompliantSelection ( _
    currentSelection As SelectedShapesCollection, _
    proposedItemsToAdd As DiagramItemCollection, _
    proposedItemsToRemove As DiagramItemCollection, _
    primaryItem As DiagramItem _
) As Boolean
'使用
Dim instance As GeneralDiagramSelectionRules
Dim currentSelection As SelectedShapesCollection
Dim proposedItemsToAdd As DiagramItemCollection
Dim proposedItemsToRemove As DiagramItemCollection
Dim primaryItem As DiagramItem
Dim returnValue As Boolean

returnValue = instance.GetCompliantSelection(currentSelection, _
    proposedItemsToAdd, proposedItemsToRemove, _
    primaryItem)
public override bool GetCompliantSelection(
    SelectedShapesCollection currentSelection,
    DiagramItemCollection proposedItemsToAdd,
    DiagramItemCollection proposedItemsToRemove,
    DiagramItem primaryItem
)
public:
virtual bool GetCompliantSelection(
    SelectedShapesCollection^ currentSelection, 
    DiagramItemCollection^ proposedItemsToAdd, 
    DiagramItemCollection^ proposedItemsToRemove, 
    DiagramItem^ primaryItem
) override
public override function GetCompliantSelection(
    currentSelection : SelectedShapesCollection, 
    proposedItemsToAdd : DiagramItemCollection, 
    proposedItemsToRemove : DiagramItemCollection, 
    primaryItem : DiagramItem
) : boolean

Parameters

Return Value

Type: System.Boolean

Permissions

See Also

Reference

GeneralDiagramSelectionRules Class

GeneralDiagramSelectionRules Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace