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

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

Parameters

attachmentGuid
Type: SystemObject
Attachment GUID.
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