www.mxdraw.com
内容索引主面
前一个向上下一个
MxDrawXCustomEvent::Mx_NewAddLayer 方法

在图层编辑界面增加图层通知事件..

IDL
VOID Mx_NewAddLayer(McDbObjectIdArray id);

例如: 如 C#语言.

    private void axMxDrawX1_CustomEvent_1(object sender, AxMxDrawXLib._DMxDrawXEvents_CustomEventEvent e)
    {
        if (e.sEventName == "Mx_NewAddLayer")
        {
            // 得到新增加的层对象id.
            MxDrawResbuf param = (MxDrawResbuf)axMxDrawX1.CustomEventParam();
            for (int i = 0; i < param.Count; i++)
            {
                Int64 id = param.AtObjectId(i);
            }
        }
    }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!