ArcObjects Library Reference  (Schematic)    

INgElementType.GetElement Method

Returns the element named 'eltName' implemented by the element type.

[Visual Basic 6.0]
Function GetElement(
    ByVal eltName As String _
) As INgElement
[Visual Basic .NET]
Public Function GetElement ( _
    ByVal eltName As String _
) As INgElement
[C#]
public INgElement GetElement (
    string eltName
);
[Java]
public INgElement getElement (
    String eltName
)
throws
    IOException,
    AutomationException
[C++]
HRESULT GetElement(
  BSTR eltName,
  INgElement** pVal
);
[C++]

Parameters

eltName [in]

  eltName is a parameter of type BSTR

pVal [out, retval]

  pVal is a parameter of type INgElement

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 GetElement method:

Dim pElement As INgElement
Dim pElementType As INgElementType
...
Set pElement = pElementType.GetElement("Root")

See Also

INgElementType Interface | INgElementType.Elements Property | INgDiagram.GetNode Method | INgDiagram.GetLink Method | INgDiagram.GetDrawing Method

 


Feedback Send feedback on this page