zoukankan      html  css  js  c++  java
  • c# axPageLayoutControl 加数据框

    private void axPageLayoutControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IPageLayoutControlEvents_OnMouseDownEvent e)
    {
    if (e. button == 1) return;

    //Create an envelope by tracking a rectangle
    IEnvelope envelope = axPageLayoutControl1.TrackRectangle();

    //Create a map frame element with a new map
    IMapFrame mapFrame = new MapFrameClass();
    mapFrame.Map = new MapClass();

    //Add the map frame to the PageLayoutControl with specified geometry
    axPageLayoutControl1.AddElement((IElement)mapFrame, envelope, null, null, 0);
    //Refresh the PageLayoutControl
    axPageLayoutControl1.Refresh(esriViewDrawPhase.esriViewGraphics, null, null);
    }

  • 相关阅读:
    Muddy Fields
    LightOJ 1321
    LightOJ 1085
    LightOJ 1278
    LightOJ 1341
    LightOJ 1340
    vijos 1426 背包+hash
    vijos 1071 01背包+输出路径
    vijos 1907 DP+滚动数组
    vijos 1037 背包+标记
  • 原文地址:https://www.cnblogs.com/gisoracle/p/4827851.html
Copyright © 2011-2022 走看看