关闭图层Tip提示
2016-02-16 09:24:16 访问(1561) 赞(0) 踩(0)
/// <summary>
/// 关闭Tip提示
/// </summary>
/// <param name="bFlag"></param>
public void FeatureLayerShowTip(bool bFlag)
{
if (this.mapControl1 == null)
return;
Map map = this.mapControl1.Map;
if (map == null)
return ;
try
{
string TKey
=
"MapInfo.Tools.MapToolsDefault.InfoTipLayers";
FeatureLayer theResult = null;
int iCount = map.Layers.Count;
// 关闭Tip提示 //
for (int i = 0; i < iCount; ++i)
{
theResult = map.Layers[i] as FeatureLayer;
if (theResult == null)
continue;
if (theResult.CustomProperties == null)
continue;
if (theResult.CustomProperties.ContainsKey
(TKey))
{
theResult.CustomProperties[TKey] = bFlag;
}
}
}
catch
{
}
}
标签:
关闭图层Tip提示 


上一条:
下一条:
相关评论
发表评论