_CommandBars.GetImageMso Method
Returns an IPictureDisp object of the control image identified by the idMso parameter scaled to the dimensions specified by width and height.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function GetImageMso ( _
idMso As String, _
Width As Integer, _
Height As Integer _
) As IPictureDisp
'Usage
Dim instance As _CommandBars
Dim idMso As String
Dim Width As Integer
Dim Height As Integer
Dim returnValue As IPictureDisp
returnValue = instance.GetImageMso(idMso, _
Width, Height)
IPictureDisp GetImageMso(
string idMso,
int Width,
int Height
)
Parameters
idMso
Type: System.StringIdentifier for the control.
Width
Type: System.Int32The width of the image.
Height
Type: System.Int32The height of the image.
Return Value
Type: IPictureDisp
IPictureDisp
Remarks
The Width and Height parameters must be between 16 and 128.