Freigeben über


SelectedShapesCollection.FindFirstFocusableDiagramItem(DiagramItem) Method

Definition

Given the specified diagram item, find the first diagram item that can receive focus. If the specified diagram item can receive focus, a clone of it is returned. If the diagram item is not focusable, then its first focusable descendant is returned, if any. If that search fails, then the parent hierarchy is traversed for the first focusable ancestor.

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

Parameters

startFromItem
DiagramItem

The DiagramItem from which to start the search.

Returns

The first diagram item that can receive focus

Applies to