Click or drag to resize
MediaFilePreviewShowPreviewOrIcon Method
Shows preview for file if exists or file icon.

Namespace: CMS.MediaLibrary.Web.UI
Assembly: CMS.MediaLibrary.Web.UI (in CMS.MediaLibrary.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static string ShowPreviewOrIcon(
	MediaFileInfo fileInfo,
	int width,
	int height,
	int maxSideSize,
	string previewSuffix,
	string iconSet,
	Page page
)

Parameters

fileInfo
Type: CMS.MediaLibraryMediaFileInfo
Media file info
width
Type: SystemInt32
Width of preview to display
height
Type: SystemInt32
Height of preview to display
maxSideSize
Type: SystemInt32
Max side size of preview to display
previewSuffix
Type: SystemString
Media file preview suffix
iconSet
Type: SystemString
Name of the subfolder where icon images are located
page
Type: System.Web.UIPage
Page

Return Value

Type: String
See Also