Hi,isn't there a method like getItemByName()? Such methods appear more often as far as I know.Another idea is to map the itemnumber with ne itemname.For this you have to get a list of itemnames available or iterate until you have found it.Somthing like this maybe (not functional, just as idea):string itemName = XXXX;
ISymbol Sym = null;
SytelClass sc = axSymbologyControl1.GetStyleClass(styleClass);
bool found = false;
int i = 0;
while(!found)
{
if(sc.GetItem(i).Item.Name = itemName)
{
found = true;
}
else
{
i++;
}
}