Provides access to members that control the reading and writing of layer document files.

使用的是    ILayerFile  接口。

// create a new LayerFile instance
        ILayerFile layerFile = new LayerFileClass();
        //create a new layer file
        layerFile.New(saveFileDialog.FileName);
        //attach the layer file with the actual layer
        layerFile.ReplaceContents((ILayer)customProperty);
       // savee the layer file
        layerFile.Save();

posted on 2010-09-26 16:51  hl3292  阅读(316)  评论(0编辑  收藏  举报