public List<TextSymbol> TextSymbolList(){ List<TextSymbol> l = new List<TextSymbol>(); foreach (Graphic g in this.Graphics) { l.Add((TextSymbol)g); //THIS DOES NOT WORK } return l; }Solved! Go to Solution.
public List<TextSymbol> TextSymbolList(){
List<TextSymbol> l = new List<TextSymbol>();
foreach (Graphic g in this.Graphics)
{
g.symbol = l;
// If you have a graphic layer
graphicLayer.add(g);
//This is wrong!!!
//l.Add((TextSymbol)g); //THIS DOES NOT WORK
}
return l;
}