 |
| IXlsList |
 |
COM interface ( getting help with interfaces )
interface IXlsList : IDispatch
{
[id(1) ] HRESULT Add([in]BSTR s);
[id(2) ] HRESULT AddAlternate([in]BSTR s);
[id(3),propput] HRESULT Name([in]BSTR name);
[id(3),propget] HRESULT Name([out, retval]BSTR* name);
[id(4),propget] HRESULT Count([out, retval]int* nbitems);
[id(5),propget] HRESULT Item([in]int i, [out, retval]BSTR* s);
[id(6) ] HRESULT SelectItem([in]int i);
[id(7) ] HRESULT UnselectItem([in]int i);
[id(8) ] HRESULT SelectAll();
[id(9) ] HRESULT UnselectAll();
[id(10),propget] HRESULT IsSelected([in]int i, [out, retval]BOOL* bItemIsSelected);
}
HRESULT Add([in]BSTR s);
adds a string item to the list.
HRESULT AddAlternate([in]BSTR s);
adds an alternate string item to the list. For instance an alternate to february is feb.
HRESULT Name([in]BSTR name);
sets the name of the list. Must be unique across all lists in the scope.
HRESULT Name([out, retval]BSTR* name);
returns the name of the list.
HRESULT Count([out, retval]int* nbitems);
returns the number of items in the list.
HRESULT Item([in]int i, [out, retval]BSTR* s);
returns the i-th item in the list. The index starts at 1.
HRESULT SelectItem([in]int i);
selects the i-th item in the list. The index starts at 1.
HRESULT UnselectItem([in]int i);
unselects the i-th item in the list. The index starts at 1.
HRESULT SelectAll();
selects all items in the list.
HRESULT UnselectAll();
unselects all items in the list.
HRESULT IsSelected([in]int i, [out, retval]BOOL* bItemIsSelected);
returns whether or not the i-th item in the list is selected. The index starts at 1.