共用方式為


GeneralDiagramSelectionRules.GetCompliantSelection Method

Called by the design surface to allow selection filtering

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

Syntax

'宣告
Public Overrides Function GetCompliantSelection ( _
    currentSelection As SelectedShapesCollection, _
    proposedItemsToAdd As DiagramItemCollection, _
    proposedItemsToRemove As DiagramItemCollection, _
    primaryItem As DiagramItem _
) As Boolean
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
abstract GetCompliantSelection : 
        currentSelection:SelectedShapesCollection * 
        proposedItemsToAdd:DiagramItemCollection * 
        proposedItemsToRemove:DiagramItemCollection * 
        primaryItem:DiagramItem -> bool 
override GetCompliantSelection : 
        currentSelection:SelectedShapesCollection * 
        proposedItemsToAdd:DiagramItemCollection * 
        proposedItemsToRemove:DiagramItemCollection * 
        primaryItem:DiagramItem -> bool 
public override function GetCompliantSelection(
    currentSelection : SelectedShapesCollection, 
    proposedItemsToAdd : DiagramItemCollection, 
    proposedItemsToRemove : DiagramItemCollection, 
    primaryItem : DiagramItem
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

GeneralDiagramSelectionRules Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace