ArcObjects Library Reference  (Schematic)    

INgDiagramType.IsElementTypeAssociated Property

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
);
[C++]

Parameters

ElementType [in]

  ElementType is a parameter of type INgElementType

IsAssociated [out, retval]

  IsAssociated is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Schematics Extension.
[Visual Basic 6.0]

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

See Also

INgDiagramType Interface | INgDiagramType.AssociatedElementTypes Property | INgDiagramType.AssociateElementType Method

 


Feedback Send feedback on this page