AddIcons Method
Description
The AddIcons method is used to add icons from one collection to another.
Syntax
Public Sub AddIcons( _
ByVal [Icons] As [ImageManagerIcons] _
)
Parameters
- Icons: Pointer to the collection of icons to add to this collection.
Remarks
The AddIcons method is used to add icons from one collection to another. This is used to add icons from one control to another. For example, to use icons added to a ShortcutBar's Icons collection in the CommandBars, you would use the AddIcons method to add the icons from the ShortcutBar to the CommandBar. The CommandBar can now use these images.
Note: If an icon in both collections has the same Id, then that icon will not be added to the collection; it is just skipped.
Example
AddIcons Sample (Visual Basic)
This sample illustrates how to add the icons from one collection to another.
' Adds the icons in the ShortcutBar collection to the CommandBars Icon collection
' The Id of the icons will remain the same. Icons with the same id as an icon in the
' CommandBars icon collection will not be copied.
CommandBars.Icons.AddIcons wndShortcutBar.Icons
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.