摘要:
加点的一般方法: Catalog _catalog=MapInfo.Engine.Session.Current.Catalog; MapInfo.Geometry.Point pt = new MapInfo.Geometry.Point(map.GetDisplayCoordSys(),dp); MapInfo.Styles.SimpleVectorPointStyle vs ... 阅读全文
摘要:
修改label文字:source.DefaultLabelProperties.Style.Font.Size=9;修改文字的位置:source.DefaultLabelProperties.Layout.Alignment=MapInfo.Text.Alignment.BottomCenter;惨痛教训: 花了一个半小时的时间去调位置,老是纠缠在attributes上,那是一个枚举... 阅读全文
摘要:
原因:表格结构过于复杂解决:简化表格结构 阅读全文
摘要:
用foreach的方法不行 foreach(XmlNode xn2 in xn)xn.RemoveChild(xn2);在移除第一个节点后就不能继续了用removeallchild更是不行,会把属性也给移除掉的正确方法是: while(xn.ChildNodes.Count>0)xn.RemoveChild(xn.FirstChild); 阅读全文