南瓜ID:jaanna
957次访问,排名2万外好友2人,关注者4
人老了,才发现什么都不会。
jaanna的文章
原创 11 篇
翻译 0 篇
转载 8 篇
评论 0 篇
最近评论
文章分类
收藏
    相册
    房子车子票子
    孩子
    旅游足迹
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 mappagelayout指定位置显示时间收藏

    新一篇: "道氏理论"--技术分析的鼻祖 | 旧一篇: 在mappagelayout上显示图片,标记指定地点:方法2

                             ITextSymbol textSymbol = new TextSymbolClass();           //Create a text symbol
                            textSymbol.Size = 25;
                            ITextElement textElement = new TextElementClass();      //Create a new text element
                            textElement.Symbol = textSymbol;                        //Set the text element properties Element.Symbol = textSymbol;
                            textElement.Text = DateTime.Now.ToShortDateString();
                            IElement pElement = (IElement)textElement;              //QI for Ielement
                            pElement.Geometry = dPoint;                             //Set the elements geometryQI,得到IElement接口对象,用于设置元素的Geometry
                            axMapControl1.ActiveView.GraphicsContainer.AddElement(pElement, 0);//Add the element to the graphics container将元素添加到MapPageLayout中
                            axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);//局部刷新Refresh the graphics
                            #endregion

    发表于 @ 2007年11月09日 23:03:00|评论(loading...)|编辑|收藏

    新一篇: "道氏理论"--技术分析的鼻祖 | 旧一篇: 在mappagelayout上显示图片,标记指定地点:方法2

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © jaanna