摘要: 默认情况下,RepositoryItemCheckEdit的空值,会显示为灰色选中状态,要想改为白色空状态,需要修改NullStyle属性为Unchecked。 RepositoryItemCheckEdit check = new RepositoryItemCheckEdit(); check.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; 阅读全文
posted @ 2013-05-21 13:42 忆如梨花 阅读(419) 评论(0) 推荐(0) 编辑
摘要: http://www.knowsky.com/541032.html 阅读全文
posted @ 2013-05-17 14:10 忆如梨花 阅读(492) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/crazypig/archive/2012/02/20/2359599.html 阅读全文
posted @ 2013-05-07 10:03 忆如梨花 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 圆形在shape和feature class(mdb/gdb)中的存储方式不一样,feature class中是通过圆心和半径计算出来的曲线,而shape文件中是通过多节点拟合出来的,所以在投影后变形会有不同。其他的多边形不会有这个问题。element与feature class的存储方式类似,圆形也是通过圆心与半径的方式存储的。如果希望以节点的方式拟合,只能将其转出成shape格式的数据 阅读全文
posted @ 2013-04-24 15:04 忆如梨花 阅读(178) 评论(0) 推荐(0) 编辑
摘要: ArcEngine中画出的Element遮挡地图的标注,解决: IGraphicsLayer pGraLayer = this.axMapControl1.ActiveView.FocusMap.BasicGraphicsLayer; IBarrierProperties pBarrierProp = pGraLayer as IBarrierProperties; pBarrierProp.Weight = (int)esriBasicOverposterWeight.esriMediumWeight; 阅读全文
posted @ 2013-04-24 14:58 忆如梨花 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 首先有两个接口可以实现复制功能:(1)IFeatureDataConverter (2)IGeoDBDataTransferIFeatureDataConverter接口只能复制简单的要素类,不支持GDB中包含的 Geometric Networks、 Topologies、 Network Datasets、Relationship Classes、 Network feature classes、 Annotation or Dimension feature class、 Feature classes with class extensions、 Subtypes, domains a 阅读全文
posted @ 2013-04-24 14:55 忆如梨花 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 编码:using System.Text; byte[] buffer = Encoding.GetEncoding("utf-8").GetBytes("中国"); string str = ""; foreach (byte b in buffer) str += string.Format("%{0:X}", b);解码: public static string Decode(string str) { string[] strs = str.Split('%'); List<byte 阅读全文
posted @ 2013-04-24 14:52 忆如梨花 阅读(616) 评论(0) 推荐(0) 编辑
摘要: <compilation debug="true" /> <webServices> <protocols> <add name="HttpSoap"/> <add name="HttpPost"/> <add name="HttpGet"/> <add name="Documentation"/> </protocols> </webServices> 阅读全文
posted @ 2013-04-17 14:46 忆如梨花 阅读(340) 评论(0) 推荐(0) 编辑
摘要: http://fangrn.iteye.com/blog/702918 阅读全文
posted @ 2013-04-02 14:35 忆如梨花 阅读(265) 评论(0) 推荐(0) 编辑
摘要: foreach (ChangeETOPSLayerColorName item in Enum.GetValues(typeof(ChangeETOPSLayerColorName))) { comboBoxEdit1.Properties.Items.Add(item); } 阅读全文
posted @ 2013-03-25 14:07 忆如梨花 阅读(144) 评论(0) 推荐(0) 编辑