SelectedShapesCollection.FindFirstSelectableDiagramItem Method
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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Shared Function FindFirstSelectableDiagramItem ( _
startFromItem As DiagramItem _
) As DiagramItem
public static DiagramItem FindFirstSelectableDiagramItem(
DiagramItem startFromItem
)
public:
static DiagramItem^ FindFirstSelectableDiagramItem(
DiagramItem^ startFromItem
)
static member FindFirstSelectableDiagramItem :
startFromItem:DiagramItem -> DiagramItem
public static function FindFirstSelectableDiagramItem(
startFromItem : DiagramItem
) : DiagramItem
Parameters
- startFromItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
The DiagramItem from which to start the search.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.