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
public int get_IDByName (
    string Name
  BSTR Name,
  System.Int32* index
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.


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

See Also

IGraphicAttributes Interface