获取选择集、选择集颜色设置
来源:互联网 发布:软件开发的课程 编辑:程序博客网 时间:2024/05/21 12:48
1、图层选择集
IFeatureLayer pLayer = GIS.BasciClass.MapManger.GetLayerByName(pMap, pLayerName) as IFeatureLayer;IFeatureSelection pSelection = pLayer as IFeatureSelection;
ISelectionSet pSelectSet = pSelection.SelectionSet;
pSelectSet.Search(null, false, out pCursor);
2、图层选择集
IFeatureSelection pSelection = player as IFeatureSelection;
IQueryFilter pQuery = new QueryFilterClass();
pQuery.WhereClause = where_clause;
pSelection.SelectFeatures(pQuery, esriSelectionResultEnum.esriSelectionResultNew, false);
pSelection.SelectionSymbol = pSymbol;
ISelectionSet pSelectionSet = pSelection.SelectionSet;
3、地图选择集
ISelection selection = pMap.FeatureSelection;
IEnumFeatureSetup enumFeatureSetup = selection as IEnumFeatureSetup; //这里很必要
enumFeatureSetup.AllFields = true;
//这里很必要
IEnumFeature enumFeature = enumFeatureSetup as IEnumFeature;
enumFeature.Reset();
IFeature feature = enumFeature.Next();
4、选择集颜色设置
ISelectionEnvironment pSelectionEnvironment = new SelectionEnvironmentClass();
pSelectionEnvironment.DefaultColor = MapManger.ConvertColorToIColor(Color.Red);
- 获取选择集、选择集颜色设置
- 颜色选择
- 颜色选择
- 颜色选择
- 颜色选择
- 修改CheckBox选择框、设置选择框颜色
- Eclipse高亮设置和颜色选择
- iOS UItableviewcell选择背景颜色和字体颜色设置
- 颜色选择,自定义颜色供选择
- ArcGIS改变选择集选中时的样式与颜色
- ArcGIS改变选择集选中时的样式与颜色
- 设置所选择物体的wirecolor为随机颜色
- 字体选择对话框CFontDialog(没有实现颜色设置)
- matlab plot函数等的颜色选择设置
- 【iOS学习】TABBAR选择的TAB背景颜色设置方法
- 在ArcGIS中如何设置选择要素的颜色
- 自定义颜色选择面板
- 颜色选择列表框
- 来自优达学城毕业生和导师的学习建议
- 获取当前设置的版本
- 四种php常用排序算法
- 求数组第K大
- 【寒江雪】顶点缓存与HLSL
- 获取选择集、选择集颜色设置
- libsvm最新源代码(版本3.21)理解解析(二)
- 一步一步,从零开始开发asp.net
- 屏幕密度
- UBuntu 16.04.01 LTS Chromium 安装pepperflash
- android的一些小知识点
- 磁盘配额
- UITableView的基本知识
- Gradle for Android-高级Build和自定义