Share via


PresentationHelpers.GetChildShapes<T> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Get child shapes that display UML model elements of the given type. Empty enumeration if none found.

Namespace:  Microsoft.VisualStudio.Uml.Presentation
Assembly:  Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetChildShapes(Of T As IElement) ( _
    shape As IShape _
) As IEnumerable(Of IShape(Of T))
'Usage
Dim shape As IShape
Dim returnValue As IEnumerable(Of IShape(Of T))

returnValue = shape.GetChildShapes()
public static IEnumerable<IShape<T>> GetChildShapes<T>(
    this IShape shape
)
where T : IElement
[ExtensionAttribute]
public:
generic<typename T>
where T : IElement
static IEnumerable<IShape<T>^>^ GetChildShapes(
    IShape^ shape
)
static member GetChildShapes : 
        shape:IShape -> IEnumerable<IShape<'T>>  when 'T : IElement
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<IShape<T>>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IShape. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

PresentationHelpers Class

PresentationHelpers Members

Microsoft.VisualStudio.Uml.Presentation Namespace