Hello,
Can anybody tell me how to set the selected feature border colour only using Arcobject C#?
My C# Coding:
IMap map = axMapControl1.Map;
IFeatureSelection featSel;
IFeatureLayer fLayer;
fLayer = axMapControl1.get_Layer(0) as IFeatureLayer;
featSel = fLayer as IFeatureSelection;
IQueryFilter qFilt = new QueryFilter();
string crops = txtCrop.Text;
qFilt.WhereClause = "Crop LIKE '%" + crops + "' OR Crop LIKE '" + crops + "%' OR Crop LIKE '%" + crops + "%'";
featSel.Clear();
featSel.SelectFeatures(qFilt, esriSelectionResultEnum.esriSelectionResultNew, false);
MessageBox.Show(featSel.SelectionSet.Count.ToString() + " features selected");
IRgbColor grn = new RgbColor();
grn.Red = 50;
grn.Green = 255;
grn.Blue = 255;
featSel.SelectionColor = grn;
axMapControl1.Refresh();
Regards,
Raj