gis_cn
路人甲
路人甲
  • 注册日期2006-07-02
  • 发帖数10
  • QQ
  • 铜币164枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1109回复:0

问哈 IfeatureSelection.SelectionColor

楼主#
更多 发布于:2007-08-07 05:33
从ESRI的网站上, 得到<br><strong>SelectionColor</strong> is equivalent to using the "Show selected features...with this color" option in the layer properties. <br><br>下面是我的code<br><br>Dim pFeatureLayer As IFeatureLayer<br>Set pFeatureLayer = New FeatureLayer<br>Set pFeatureLayer.FeatureClass = pFeatureClass<br>Dim pFeatureSelection As IFeatureSelection<br>Set pFeatureSelection = pFeatureLayer<br>Dim pQueryFilter As IQueryFilter<br>Set pQueryFilter = New QueryFilter<br>pQueryFilter.WhereClause = "Parcels_ID > 1410"<br>pFeatureSelection.SelecFeatures pQueryFilter, esriSelectionResultNew, False<br>Dim pColor As IColor<br>Set pColor = New RgbColor<br>pColor.RGB = RGB(255,255,0)<br>set pFeatureSelection.SelectionColor = pColor<br><br>这里我没有图, featuer layer是用feature class来创建的, 我该怎么判定选择的 features 是用我设定的颜色显示的, <br>
喜欢0 评分0
游客

返回顶部