SelectionInfoItemBase.FindInstance<T> Method

Gets the instance of SelectedItem with the given parents.
Public Shared Function FindInstance(Of  _ 
T As {SelectionInfoItemBase, New})( _ 
ByVal parents As Stack(Of BlockReference), _ 
ByVal ent As ISelectableItem, _ 
ByVal selectionItem As T, _ 
ByVal selectionItemsInstances As List(Of T) _ 
) As T
This language is not supported or no code example is available.
public static T FindInstance<T>( 
Stack<BlockReference> parents
ISelectableItem ent
T selectionItem
List<T> selectionItemsInstances 

where T : SelectionInfoItemBase, new()
This language is not supported or no code example is available.

Type Parameters

T

Parameters

parents
Stack<BlockReference>

The parents

ent
ISelectableItem

selectionItem
T

The item at top level

selectionItemsInstances
List<T>

The instances items to search

Return Value

T

The instance if found, null elsewise.

.NET Framework

Supported in: 4.8

In this article

Definition