ArcObjects Library Reference (Carto) |
|
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
|
Name |
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. |
.NET Snippets
Set Group Layer Cache |
Save Layer To File
.NET Samples
Save a layer file in a MapControl application (Code Files:
SaveLayerFileCmd) |
Route layer (Code Files:
Program) |
Working with packages in ArcGIS Engine (Code Files:
FrmMapControl)
.NET Related Topics
How to save a layer file |
How to setup, solve, and save a network analysis problem