Поделиться через


Working With the Image Viewer Web Part

The Image Viewer Web Part displays an image of a product. You can use this Web Part instead of the Product Details Web Part (which uses an XSL template to control the image presentation) to have more flexibility in the presentation of the image.

Web Part

The following figure shows the Image Viewer Web Part.

Dd452313.Vug_ImageViewer_WebPart(en-US,CS.90).gif

Property Sheet

The following figure shows the Image Viewer Web Part property sheet. The Image Viewer Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Edit Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd452313.Vug_ImageViewer_WP_Properties(en-US,CS.90).gif

Properties

The following properties are available for the Image Viewer Web Part.

Property

Type

Description

Default

Default Height

Int

Default height of image.

0

Default Width

Int

Default width of image.

0

Default File Name

String

File name of the default image to display.

Blank

Default Alt-Text

String

Default text to display if image cannot be displayed.

Blank

Image Location

String

URL to image location

Blank

Image Height

String

Height of image.

Blank

Image Width

String

Width of image.

Blank

Image Filename

String

File name of the image to display.

Blank

Image Alt-Text

String

Text to display if image cannot be displayed.

Blank

CSS class

String

Style sheet.

Blank

See Also

Other Resources

Working With the Web Parts

Working With the Product Details Web Part

Images Viewer Web Part

Product Details Web Part