I wrote a code that add some items to a listbox at runtime, now i can’t figure out how to acces to the properties of this items (specifically to the FontSize).
Here there is some code
for (int i = 0; i < list.Count; i++)
{
trainerRoutine Item = list[i];
routines_lst.Items.Add(Item.name);
}
Considering that like
ListBoxitem you add aItem.Name, which I suppose a simple string, I would say that forFontproperty you shouldn’t look inside item but inside theListBoxitself.