IGxFile Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxFile Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Catalog)  

IGxFile Interface

Provides access to members that manages a file object.

Product Availability

Available with ArcGIS Desktop.

Members

Name Description
Method Close Closes the file, optionally saving changes.
Method Edit Opens an editor to modify the file.
Method New Creates a new file.
Method Open Opens the file.
Read/write property Path The full path for the file.
Method Save Saves changes without closing the file.

CoClasses that implement IGxFile

CoClasses and Classes Description
GxCatalog GxObject that represents the catalog.
GxDataGraph GxObject that represents data graph.
GxDiskConnection GxObject that represents a disk connection.
GxFeatureDefinitionPackage GxObject that represents a feature definition package.
GxFile GxObject that represents a file.
GxFolder GxObject that represents a folder.
GxGeoprocessingResult GxObject that represents a Geoprocessing Result.
GxLayer GxObject that represents a layer.
GxMap GxObject that represents a map.
GxMetadata GxObject that represents an XML file.
GxMSDFile (esriCatalogUI) A MapServerDefinitionFile Dataset.
GxPackage GxObject that represents a layer or map package.
GxPrjFile GxObject that represents GxPrjFile.
GxReport GxObject that represents a report.
GxShortcut GxObject that represents a shortcut to a GxObject. This object is not supported on ArcGIS version 10.1. or later.
GxSpatialWeightsMatrixFile GxObject that represents a spatial weights matrix file.
GxTextFile GxObject that represents the text file.
GxToolbox Catalog object corresponding to toolboxes.
GxWorkspaceFolder GxObject that represents a workspace folder.
SearchResults GxObject that represents the search result. This object is not supported on ArcGIS version 10.1. or later.
SearchResultsRoot A container for search results. This object is not supported on ArcGIS version 10.1. or later.

.NET Snippets

Add Layer File to ActiveView

.NET Related Topics

How to add a layer to a map from a layer file | How to group data into separate lines on a line graph