getting CommandBarComboBox list contents?

T

ted_x_toth

Is there a way to get the contents of a CommandBarComboBoxs list of
items? I'm working in C# using the XP PIA Office interop dll and I
don't see a method that looks like it will return me the contents of
the comboboxes list. Also what does the Execute method do and how does
one use it?
 
B

Bubu

Hi. Use .List property with index of desired item or loop through it
with ListCount .
David
 
T

ted_x_toth

If only there were a .List property I'd do as you suggest however there
isn't one. :(
 
B

Bubu

You can find these methods XP PIA:
public virtual new System.String get_List ( System.Int32 Index )
Member of Microsoft.Office.Core.CommandBarComboBoxClass

public virtual new int ListCount [ get]
Member of Microsoft.Office.Core.CommandBarComboBoxClass

public virtual new int ListIndex [ get, set ]
Member of Microsoft.Office.Core.CommandBarComboBoxClass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top