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


IGraphicAttributes.IDByName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IG > IGraphicAttributes Interface > IGraphicAttributes.IDByName Property
ArcGIS Developer Help

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,
  System.Int32* 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