IconId Property
Description
Gets/Sets the control icon's identifier.
Property Type
Read-write property.
Syntax (Visual Basic)
Public Property IconId() As Long
Remarks
The IconId allows you to change the icon associated with a control without changing the Id of the control. Images stored in the ImageManager are given an IconId. You can assign any IconId of an image in the ImageManager to the IconId of a control.
Both the IconId and the Id of a CommandBar control are assigned the Index value when the control is added to the CommandBar. The IconId will have to be changed if the control is associated with an image that has an IconId different from the Id.
Note: In all of the sample projects, the default is used, so the
IconIdand Id are both assigned the Index value. TheIconIdwill be used in the ImageManager control.Important: If the
IconIdis zero, then the control will use the Id of the control as theIconId.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.