ArcObjects Library Reference  (Display)    

IGraphicAttributes.IDByName Property

ID of the graphic attribute, given its name.

[Visual Basic 6.0]
Property IDByName(
    ByVal Name As String _
) As Long
[Visual Basic .NET]
Public Function get_IDByName ( _
    ByVal Name As String _
) As Integer
[C#]
public int get_IDByName (
    string Name
);
[Java]
public int getIDByName (
    String Name
)
[C++]
HRESULT get_IDByName(
  BSTR Name,
  long* index
);
[C++]

Parameters

Name [in]

  Name is a parameter of type BSTR

index [out, retval]

  index is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

If IDByName returns -1, the graphic attribute with the given name could not be found.

See Also

IGraphicAttributes Interface