ArcObjects Library Reference (EditorExt)  

IMapTopology.FindClass Method

Finds the zero-based index of the specified feature class.

[Visual Basic .NET]
Public Function FindClass ( _
    ByVal fclass As IFeatureClass _
) As Integer
public int FindClass (
    IFeatureClass fclass

Product Availability

Available with ArcGIS Desktop.


This method has been depricated in favor of IMapTopology.FindLayer


public void FindClass()
  UID extUid = new UIDClass();
  extUid.Value = "esriEditorExt.TopologyExtension";
  //You can get app from ICommand :: OnCreate() hook parameter
  ITopologyExtension topologyExt = m_app.FindExtensionByCLSID(extUid) as ITopologyExtension;
  IMapTopology mapTopology = topologyExt.MapTopology;
  int featureClassID = mapTopology.FindClass(fc0);
[Visual Basic .NET]
  Public Sub FindClass()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim extUid As UID = New UIDClass()
    extUid.Value = "esriEditorExt.TopologyExtension"
    Dim topologyExt As ITopologyExtension = TryCast(app.FindExtensionByCLSID(extUid), ITopologyExtension)
    Dim mapTopology As IMapTopology = topologyExt.MapTopology
    Dim featureClassID As Integer = mapTopology.FindClass(fc0)
  End Sub

See Also

IMapTopology Interface

.NET Samples

Curve conversion add-in (Code Files: CurveConversionDockWin)