www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawLayerTableRecord 接口

控件的层表记录对象类型,它代表一个图层的状态

IDL
[ object, uuid(3D6B9D57-104C-4374-BD64-F1747207F692), dual, nonextensible, helpstring("IMxDrawLayerTableRecord interface"), pointer_default(unique) ]
interface IMxDrawLayerTableRecord : IMxDrawSymbolTableRecord;

MxDrawLayerTableRecord.idl

例如: 关闭指定图层 C#

       MxDrawDatabase database = (MxDrawDatabase)axMxDrawX1.GetDatabase();
     MxDrawLayerTable layerTable = database.GetLayerTable();
     MxDrawLayerTableRecord layer = layerTable.GetAt("MyLayerName");
     if (layer != null)
         layer.IsOff = true;
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!