_CommandBarButton.Picture Property
Returns or sets an IPictureDisp object representing the image of a _CommandBarButton object.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Property Picture As IPictureDisp
Get
Set
'Usage
Dim instance As _CommandBarButton
Dim value As IPictureDisp
value = instance.Picture
instance.Picture = value
IPictureDisp Picture { get; set; }
Property Value
Type: IPictureDisp
Remarks
When you change the image on a button, you will also want to use the Mask property to set a mask image. The mask image determines which parts of the button image are transparent. Always set the mask after you have set the picture for a CommandBarButton object.