Share via


DepthFirstElementWalker.GetRelatedElements(ModelElement) Method

Definition

Get the list of related elements. This list will be traversed in a depth-first fashion, starting from the beginning, so the order of elements in the returned list is important. Derived classes may override this to specify a different set of related elements, or a different ordering within that set.

The default implementation includes all model elements which aren't filtered out, followed by all links which aren't filtered out.

protected:
 virtual System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetRelatedElements(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
protected virtual System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement> GetRelatedElements (Microsoft.VisualStudio.Modeling.ModelElement element);
abstract member GetRelatedElements : Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement>
override this.GetRelatedElements : Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.ModelElement>
Protected Overridable Function GetRelatedElements (element As ModelElement) As IList(Of ModelElement)

Parameters

element
ModelElement

ModelElement to query for its related elements

Returns

Applies to