b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

mapxtreme_mapxtreme编程_mapxtreme最新版(2)

电脑杂谈  发布时间:2017-01-23 05:08:55  来源:网络整理

labelSource.DefaultLabelProperties.Style.Font.BackColor =System.Drawing.Color.White; //字体背景

labelSource.DefaultLabelProperties.Style.Font.ForeColor =System.Drawing.Color.Red; //字体颜色

labelSource.DefaultLabelProperties.Style.Font.TextEffect =MapInfo.Styles.TextEffect.Box; //边缘效果

labelSource.DefaultLabelProperties.Style.Font.FontWeight =MapInfo.Styles.FontWeight.Bold; //粗体

MapInfo.Styles.SimpleLineStyle LineStyle = newMapInfo.Styles.SimpleLineStyle(0); //标注注释线

labelSource.DefaultLabelProperties.Style.CalloutLine.ApplyStyle(LineStyle);

//取消标注注释线

mapxtreme最新版_mapxtreme编程_mapxtreme

LabelLayer labelLayer = new LabelLayer();

labelLayer.Name = 'jcbz'; //设置标注图层的名称

labelLayer.Sources.Append(labelSource); //往地图中加入该标注层

map.Layers.Add(labelLayer);

}

//清除临时图层中所有的图元

public void clear_feature()

{

SearchInfo si =MapInfo.Data.SearchInfoFactory.SearchWhere('');

IResultSetFeatureCollection ifs;

MapInfo.Data.Table Tm;

Tm = Cat.GetTable('Tm');

if (Tm != null) //Table exists close it

{

si = MapInfo.Data.SearchInfoFactory.SearchWhere('');

ifs = MapInfo.Engine.Session.Current.Catalog.Search('Tm',si);

foreach (Feature ft in ifs)

Tm.DeleteFeature(ft); //删除所有该图层上的图元

}

}

}


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-28217-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 冈嶋妙
      冈嶋妙

      谁叫你们囤货的活该

    热点图片
    拼命载入中...