Indicates if the 'ElementType' element type is associated with the diagram type.
[Visual Basic 6.0] Property IsElementTypeAssociated(
ByVal ElementType As INgElementType _
) As Boolean
[Visual Basic .NET] Public Function get_IsElementTypeAssociated ( _ ByVal ElementType As INgElementType _ ) As Boolean
[C#] public bool get_IsElementTypeAssociated ( INgElementType ElementType );
[Java] public boolean IsElementTypeAssociated ( INgElementType ElementType )
[C++] HRESULT get_IsElementTypeAssociated( INgElementType* ElementType, VARIANT_BOOL* IsAssociated );
Parameters
ElementType [in]
ElementType is a parameter of type INgElementType
IsAssociated [out, retval]
IsAssociated is a parameter of type VARIANT_BOOL
Here is a sample call of the IsElementTypeAssociated property:
Dim pDiagramType As INgDiagramType
Dim pElementType As INgElementType
...
Set pElementType = m_INgProject.GetElementType("Stations")
If Not pDiagramType.IsElementTypeAssociated(pElementType) Then
pDiagramType.AssociateElementType (pElementType)
End If
INgDiagramType Interface | INgDiagramType.AssociatedElementTypes Property | INgDiagramType.AssociateElementType Method