|
RDOStoresDisplayOrderList object |
RDOStoresDisplayOrderList collection
represents the order of stores displayed by Outlook in the folder pane.
The object allows to retrieve as well
as set the store order.
Keep in mind that Outlook restart
might be required if the profile is in use by Outlook at the time the order is
set.
Returned by:
RDOStores.GetDisplayOrder
See also
RDOStore2.DisplayOrder
property.
The example below prints the names of
the stores in the order displayed by Outlook in the current profile
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
for each Store in Session.Stores.GetDisplayOrder
Debug.Print Store.Name
next |
Properties
Methods
|
Derived from:
IDispatch
|
|
Properties |
|
Item(Index) |
Returns or sets a store (RDOStore)
with the given index
Index - integer, 1
through Count |
|
Count |
Integer, read-only. Returns
the number of stores in the list. |
|
|
Methods |
|
SetItem(Index,
Store) |
Set the order of the
specified store.
Index - integer,1 through Count.
Account -
RDOStore object. |
'Add a PST store and
make it the first store in the Outlook folder list
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set order = Session.Stores.GetDisplayOrder
set store = Session.Stores.AddPstStore("c:\temp\important7.pst", ,
"Important!") 'Outlook
must be restarted to be able to see the change made below
order.SetItem 1, store
|
|
|
|
|