Document thisDoc =tempData.Application.ActiveUIDocument.Document;
Settings thisDocSetting = thisDoc.Settings;
Categories thisCataGroup = thisDocSetting.Categories;
sizeText.Text =thisCataGroup.Size.ToString();
foreach(Category catalName in thisCataGroup)
{
myListbox.Items.Add(catalName.Name);
}
myListbox.Items.Refresh();
Settings thisDocSetting = thisDoc.Settings;
Categories thisCataGroup = thisDocSetting.Categories;
sizeText.Text =thisCataGroup.Size.ToString();
foreach(Category catalName in thisCataGroup)
{
myListbox.Items.Add(catalName.Name);
}
myListbox.Items.Refresh();