This project has moved. For the latest updates, please go here.

get layer name in custom theme

Dec 19, 2011 at 2:16 PM


i set function for a custom theme

public static VectorStyle GetCountryStyle(FeatureDataRow row)
            VectorStyle style = new VectorStyle();
            int index = classification.IndexOf(row["noo"].ToString().ToLower());
            if (index>-1)
                 style.Fill = classificationColor[index];
                Random randonGen = new Random();
                Color randomColor;
                randomColor = Color.FromArgb(randonGen.Next(255), randonGen.Next(255), randonGen.Next(255));
                classificationColor.Add(new SolidBrush(randomColor));
                style.Fill = new SolidBrush(randomColor);

            return style;


i need the layer name in this dunction for change column name

can i this????

Dec 20, 2011 at 6:22 AM

I think we had that the other day...

IIRC you need to check FeatureDataRow.(Data)Table.(Table)Name to get the name of the underlying layer.

HTH FObermaier