Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
CSharp
VBNet
ReadMe.xml
Readme.html
Readme.md

Readme.md

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

Resources

Usage

  1. Open the solution and set EngineApplication as the startup project.
  2. Build the solution and run the application.
  3. Add point, polyline, and/or polygon feature class data to the map.
  4. Select a feature layer and use the Attach/Detach Tabbed Inspector Extension command.
  5. Confirm that the status bar at the bottom of the EngineApplication displays the Tabbed Inspector Extension as successfully attached to the selected feature class.
  6. Start editing, then choose one or more features from the selected feature class and open the Attribute dialog box.
  7. 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.

Additional information

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.

Licensing

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS Desktop Basic
ArcGIS Desktop Standard
ArcGIS Desktop Advanced
You can’t perform that action at this time.