當前位置:編程學習大全網 - 網站源碼 - 請教:如何用C#+Arcgis Engine實現指南針和例子?

請教:如何用C#+Arcgis Engine實現指南針和例子?

m_pageLayoutControl。CurrentTool = null

IGraphicsContainer graphics container = axpagelayoutcontrol 1。圖形容器;

IMAP frame map frame =(IMAP frame)graphics container。find frame(axpagelayoutcontrol 1。active view . focus map);

if (mapFrame == null)

返回;

UID UID = new UID class();

uID。Value = "esriCarto。圖例”;

IMapSurroundFrame mapSurroundFrame = map frame。CreateSurroundFrame(uID,null);

if (mapSurroundFrame == null)返回;

if (mapSurroundFrame。MapSurround == null)返回;

mapsurroundframe . map surround . name = " legend ";

IEnvelope envelope = new envelope class();

信封。PutCoords(1,1,3.4,2.4);

ie element element =(ie element)mapSurroundFrame;

元素。幾何=包絡;

axPageLayoutControl1。AddElement(元素,類型。缺失,類型。缺失,“0000”,0);

axPageLayoutControl1。active view . partial refresh(esriviewdrawphase . esriviewgraphics,null,null);

  • 上一篇:如何獲取不同網站的favicon默認logo
  • 下一篇:高分求用C語言編的鬧鐘程序或者定時提醒程序300-400行之間
  • copyright 2024編程學習大全網