SetBoxPictureList

Description

Sets the picture files for the items in the ribbon combo box.

Applies to

RibbonComboBoxItem control

Syntax

controlname.SetBoxPictureList (String PictureList)

Argument

Description

controlname

The name of the RibbonComboBoxItem control.

PictureList

A comma-separated list of picture files, in full path with file extension. The picture is displayed in 16*16 or 32*32 pixels. If the image is 16*16 pixels, it will be displayed as 16*16; if the image is bigger than 16*16 pixels, it will be displayed as 32*32.


Return value

Integer.

Returns 1 if it succeeds; and -1 if an error occurs. If any argument's value is null, returns null.

Examples

This example sets two built-in picture files for the items in the ribbon combo box.

Integer li_Return
RibbonComboBoxItem lr_ComboBox

li_Return = lr_ComboBox.SetBoxPictureList ("PaperSizeA0Small!, PaperSizeA1Small!")

See also

GetBoxPictureList