往Recordset中添加GeoLine时发现,线可以绘制出来但是GeoStyle 不起作用,代码如下,谢谢
Point2Ds _2ds = new Point2Ds();
_2ds.Add(new Point2D(Convert.ToDouble(lineData[index].m_BenY), Convert.ToDouble(lineData[index].m_BenX)));
_2ds.Add(new Point2D(Convert.ToDouble(lineData[index].m_EndY), Convert.ToDouble(lineData[index].m_EndX)));
GeoStyle style1 = new GeoStyle();
style1.LineColor = Color.Red;// Color.FromArgb(rgbs[0], rgbs[1], rgbs[2]);
style1.LineWidth = 10;
GeoLine _line = new GeoLine(_2ds);
_line.Style = style1;
recordset.AddNew(_line, fieldValues);