This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IG > IGraphicAttributes Interface > IGraphicAttributes.IDByName Property (ArcObjects .NET 10.5 SDK) |
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
If IDByName returns -1, the graphic attribute with the given name could not be found.