Tabbed feature inspector
This sample demonstrates how to create a custom object inspector.
A custom object inspectors allows you to control the information that is returned to the user when selected features are inspected. The custom inspector calculates and reports the area and perimeter of selected polygons, the length and coordinates of selected lines, and the coordinates of selected points.
The custom information is shown in the second panel of a tabbed control. The first panel of the control shows the standard information for the feature.
The selected features must be from an object that supports both IFeatureClass and IClassSchemaEdit (see the Additional information section).
Language: C#, VB Subject: Controls Organization: Esri, http://www.esri.com Date: 11/17/2017 ArcObjects SDK: 10.6 Visual Studio: 2015, 2017 .NET Target Framework: 4.5
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
- Open the solution and set EngineApplication as the startup project.
- Build the solution and run the application.
- Add point, polyline, and/or polygon feature class data to the map.
- Select a feature layer and use the Attach/Detach Tabbed Inspector Extension command.
- Confirm that the status bar at the bottom of the EngineApplication displays the Tabbed Inspector Extension as successfully attached to the selected feature class.
- Start editing, then choose one or more features from the selected feature class and open the Attribute dialog box.
- Ensure that a feature is selected in the Attribute dialog box tree. The Custom tab of the Attribute dialog box shows the output from the custom object inspector.
The inspected features must be from an object that supports both IFeatureClass and IClassSchemaEdit. The Tabbed Feature Inspector is attached to a feature class using the feature class's IClassSchemaEdit interface. Classes that do not implement this interface, such as a shapefile class, cannot be used with this sample.
In addition, a feature class can have only one IFeatureClassExtension at a time, so some feature classes—such as annotation feature classes—cannot be used with this sample.
This sample can be adapted for use with an ObjectClass that is not displayed in the table of contents but that has a feature class extension.
|Development licensing||Deployment licensing|
|Engine Developer Kit||Engine|
|ArcGIS Desktop Basic|
|ArcGIS Desktop Standard|
|ArcGIS Desktop Advanced|