How can I enum the all visible items on quick toolbar and Tabs
Hi all.
Q1: Enum all items on quick access toolbar.
My way:
int n = this.Application.CommandBars.Count;
for( int i = 1 ; i < n ; i++ )
{
if( this.Application.CommandBars[i].visible == true )
str = this.Application.CommandBars[i].Name;
}
My question is:
The name I got is like "WordArt","Picture",etc.
But I just want to know whether the item is "Undo" , "fileopen","filesave"?
How can I fix it?
Q2 Can I get the visible Tabs?
Can I get the visible Tabs' name etc?
Thanks a lot.
|