Previous in Contents Next in Contents

LogoRefs Collection

The LogoRefs collection is a dispinterface on a class List object. This collection is intended to contain strings. When the GetCDFString method is invoked on an object whose class defines a LogoRefs collection, the strings in this collection are enumerated and each is used to map to a key in a class Project object's Logos collection. Each key in the Logos collection indexes an associated ILogo dispinterface. For each such interface, the GetCDFString method is invoked, and the resulting string output is added to the enumerating object's CDF string.

Type

IList (VT_DISPATCH)

Contains

String (VT_BSTR)

Default

Empty

Remarks

Use the List object's methods to add names to the LogoRefs list. These names must refer to valid logo names in the Project object's Logos collection at the time the element is constructed with GetCDFString.

Note   The LogoRefs collection stores strings in a case-sensitive manner. However, the Dictionary object that stores the Project object's Logos collection uses case-insensitive keys. Any explicit comparison between the keys and the strings should be done using case-insensitive compares.

If a string exists in the LogoRefs collection that does not have a matching key in the Project.Logos collection, the following element will be produced in lieu of the LOGO element:

<BAD-LOGOREF-PRESENT HREF="…"/>

All objects that have a LogoRefs collection require an IProject dispinterface as an argument to their GetCDFString methods. The keys in this Project object’s Logos collection are used to resolve to Logo objects.

Example

Set Project = CreateObject("Push.Project")
Project.AddLogo "icon","/images/icon.gif"
Set Channel = Project.Channel
Channel.LogoRefs.Add "icon"

See Also

IProject Logos Collections

Class Logo

Class List


© 1997-2000 Microsoft Corporation. All rights reserved.