Provides access to members that control the reading and writing of layer document files.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Members
| Description | ||
|---|---|---|
![]()  | 
Close | Close the layer file. | 
![]()  | 
Filename | The name of the layer file that the LayerFile coclass is linked to. | 
![]()  | 
IsLayerFile | Indicates if the file is a valid layer file. | 
![]()  | 
IsPresent | Indicates if the layer file is present. | 
![]()  | 
IsReadOnly | Indicates if the layer file is read only. | 
![]()  | 
Layer | The Layer object. If no layer object is stored in the layer file this returns NULL. | 
![]()  | 
New | Creates and opens a new layer File in preparation for the contents to be retrieve or updated. | 
![]()  | 
Open | Open the layer file in preparation for the contents to be retrieved or updated. | 
![]()  | 
ReplaceContents | Replace the contents of the layer file. | 
![]()  | 
Save | Save the contents of the layer file to the bound file. | 
![]()  | 
SaveAs | Save the contents of the layer file to the specified file name. | 
![]()  | 
Thumbnail | The thumbnail stored in the layer file. If this is empty E_FAIL is returned. | 
CoClasses that implement ILayerFile
| CoClasses and Classes | Description | 
|---|---|
| LayerFile | The LayerFile coclass is used to read and write layer document files. | 

