This document is archived and information here might be outdated.  Recommended version.


IGraphicAttributes.IDByName Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

IGraphicAttributes.IDByName Property

ID of the graphic attribute, given its name.

[Visual Basic .NET]
Public Function get_IDByName ( _
    ByVal Name As String _
) As Integer
[C#]
public int get_IDByName (
    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