MediaLibraryHelperShowPreviewOrIcon Method |
Show preview file if exists or file icon.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.2.23
Syntax 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:
StringSee Also