共用方式為


SelectedShapesCollection.SelectionRules Property

Definition

Gets the DiagramSelectionRules object that constrains how ShapeElements can be added and removed from the selection.

public:
 property Microsoft::VisualStudio::Modeling::Diagrams::DiagramSelectionRules ^ SelectionRules { Microsoft::VisualStudio::Modeling::Diagrams::DiagramSelectionRules ^ get(); };
public Microsoft.VisualStudio.Modeling.Diagrams.DiagramSelectionRules SelectionRules { get; }
member this.SelectionRules : Microsoft.VisualStudio.Modeling.Diagrams.DiagramSelectionRules
Public ReadOnly Property SelectionRules As DiagramSelectionRules

Property Value

Remarks

To define your own constraints on the selection, override your Diagram's SelectionRules property and return your own DiagramSelectionRules derived class.

Applies to