在做数据集查询的功能中发现,改变不了查找到的数据集的显示样式,代码如何,应该如何更改(数据集是线数据),谢谢
GeoStyle style = new GeoStyle();
style.LineColor = Color.Green;
style.LineWidth = 4.0;
m_targetLayer.Selection.FromRecordset(_recordset);
m_targetLayer.Selection.Style = style;
(SuperMap.Desktop.Application.ActiveForm as IFormMap).MapControl.Map.Refresh();
(SuperMap.Desktop.Application.ActiveForm as IFormMap).MapControl.Refresh();