Ribbon.getImageList

Syntax

getImageList ()

Description

The getImageList method returns the PP.ImageList object containing the path to the file with images.

Comments

Determine the PP.ImageList object that contains the path to the image file, from constructor using the ImageList property or in the _ImageList field.

Example

To execute the example, the page must contain the Ribbon component named ribbon. Set an images file for the ribbon. Add a button to the panel with the Insert identifier, select an icon from this file for the button:

ribbon._ImageList = new PP.ImageList(

{

    Source: "PP_img/navigator/GlbClsImg32.png",

    IconWidth: 16,

    IconHeight: 16

})

ribbon.getControlById("Insert").addControl(new PP.Ui.RibbonButton(

{

    Content: "New button",

    ColumnIndex: 0,

    RowIndex: 0,

    ImageList: ribbon.getImageList()

}))

After executing the example a button that contains an image from the image file defined for the ribbon, is added to the ribbon tab with the Insert identifier.

See also:

Ribbon