Partager via


SelectedShapesCollection.FindFirstSelectableDiagramItem(DiagramItem) Method

Definition

Given the specified diagram item, find the first selectable diagram item. If the specified diagram item is selectable, a clone of it is returned. If the diagram item is not selectable, then the parent hierarchy is traversed for the first selectable ancestor.

public:
 static Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ FindFirstSelectableDiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ startFromItem);
public static Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem FindFirstSelectableDiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem startFromItem);
static member FindFirstSelectableDiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Shared Function FindFirstSelectableDiagramItem (startFromItem As DiagramItem) As DiagramItem

Parameters

startFromItem
DiagramItem

The DiagramItem from which to start the search.

Returns

The first diagram item that can be selected.

Applies to