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


IGxContentsViewColumns Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > CatalogUI > ESRI.ArcGIS.CatalogUI > Interfaces > IG > IGxContentsViewColumns Interface
ArcGIS Developer Help

IGxContentsViewColumns Interface

Provides access to members that control the columns of GxContentsView.

Product Availability

Available with ArcGIS Desktop.

Description

The IGxContentsViewColumns interface serves as a container for the GxContentsViewColumn objects contained within the GxContentsView object. The objects in the collection represent the columns in the tabbed display area of the view (when Contents is the active tab).

After using the InsertColumn method to add your new column, execute the UpdateColumn method to refresh the column list. RemoveAllColumns will not remove the Name and Type columns. These columns cannot be removed. Keep in mind that removal of columns is not just for that session, it is permanent.

 

Members

Name Description
Read-only property ColumnByIndex A column by its index.
Read-only property ColumnByProperty A column by its property.
Read-only property ColumnCount The total number of columns (include both visible and invisible columns).
Method InsertColumn Inserts a GxContentsViewColumn before the specified index. If index is -1, the column is inserted at the end.
Method RemoveAllColumns Removes all columns except Name and Type column (they are always shown).
Method RemoveColumn Removes a GxContentsViewColumn.
Method UpdateColumns Refresh columns in contents view after insert or remove columns.

Classes that implement IGxContentsViewColumns

Classes Description
GxContentsView GxView that represents the contents view.

Remarks

The IGxContentsViewColumns interface serves as a containter for the GxContentsViewColumn objects contained within the GxContentsView object. The objects in the collection represent the columns in the tabbed display area of the view (when "Contents" is the active tab).