Click or drag to resize
UIHelperGetDocumentTypeIconUrl Method (Page, String, String, Boolean, Boolean)
Returns resolved path to the icon image for the specified document type.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static string GetDocumentTypeIconUrl(
	Page page,
	string className,
	string iconSet = null,
	bool checkFile = true,
	bool ensureDefaultTheme = true
)

Parameters

page
Type: System.Web.UIPage
Page
className
Type: SystemString
Name of the class
iconSet (Optional)
Type: SystemString
Name of the subfolder where icon images are located
checkFile (Optional)
Type: SystemBoolean
Indicates if the required icon exists in the filesystem
ensureDefaultTheme (Optional)
Type: SystemBoolean
Indicates if default theme should be always used

Return Value

Type: String
See Also