Click or drag to resize
TransformationHelperGetFileIcon Method
Returns HTML markup representing icon.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public string GetFileIcon(
	Object fileExtension,
	Page page,
	FontIconSizeEnum iconSize = FontIconSizeEnum.NotDefined,
	string tooltip = "",
	string additionalAttributes = ""
)

Parameters

fileExtension
Type: SystemObject
File extension.
page
Type: System.Web.UIPage
Page object.
iconSize (Optional)
Type: CMS.HelpersFontIconSizeEnum
Icon size for font icon.
tooltip (Optional)
Type: SystemString
Tooltip.
additionalAttributes (Optional)
Type: SystemString
Additional HTML parameters.

Return Value

Type: String
See Also