Previous in Contents Next in Contents

AddLogo

The AddLogo method adds a Logo object to the Project object.

VBScript Syntax

IProject.AddLogo description, href [, style ]

Parameters

description

A string specifying a descriptive name of the Logo object. The name is used as a key in the class Dictionary object to index this Logo object.

href

A string specifying the URL of the logo image.

style

An optional string specifying what to set the Logo.Style property to.  

Return Value

The ILogo dispinterface added to the Logos collection.

Remarks

The Logos collection holds Logo objects that can be mapped to any subordinate objects by including the associated Dictionary "key" in their LogoRefs collection. 

Example

' Using Windows Scripting Host and VBScript
Option Explicit
Dim Prj
Set Prj = CreateObject("Push.Project")
Prj.AddLogo "My Icon", "c:\icons\myicon.gif", "ICON"
Prj.AddLogo "My Image", "c:\images\myimage.gif", "IMAGE"
Set Channel = Prj.Channel
Channel.LogoRefs.Add "My Icon"
Channel.LogoRefs.Add "My Image"

See Also

Class Dictionary

Class Logo

LogoRefs Collection


© 1997-2000 Microsoft Corporation. All rights reserved.