_CommandBars.GetImageMso(String, Int32, Int32) Method

Definition

Returns an IPictureDisp object of the control image identified by the idMso parameter scaled to the dimensions specified by width and height.

public:
 stdole::IPictureDisp ^ GetImageMso(System::String ^ idMso, int Width, int Height);
public stdole.IPictureDisp GetImageMso (string idMso, int Width, int Height);
abstract member GetImageMso : string * int * int -> stdole.IPictureDisp
Public Function GetImageMso (idMso As String, Width As Integer, Height As Integer) As IPictureDisp

Parameters

idMso
String

Identifier for the control.

Width
Int32

The width of the image.

Height
Int32

The height of the image.

Returns

IPictureDisp

Remarks

The Width and Height parameters must be between 16 and 128.

Applies to