Click or drag to resize
UIHelperGetAccessibleImageMarkup Method
Returns accessible-friendly image markup based on image URL or font icon class.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetAccessibleImageMarkup(
	Page page,
	string iconClass,
	string imagePath,
	string tooltip = null,
	FontIconSizeEnum size = FontIconSizeEnum.NotDefined,
	string iconColorClass = null,
	string defaultIconClass = null,
	string additionalClass = null,
	string additionalAttributes = null
)

Parameters

page
Type: System.Web.UIPage
Page class
iconClass
Type: SystemString
Icon class
imagePath
Type: SystemString
Image URL
tooltip (Optional)
Type: SystemString
Description (Only if not decorative image)
size (Optional)
Type: CMS.HelpersFontIconSizeEnum
Size to be used
iconColorClass (Optional)
Type: SystemString
Icon color class
defaultIconClass (Optional)
Type: SystemString
Default icon class.
additionalClass (Optional)
Type: SystemString
Additional CSS class.
additionalAttributes (Optional)
Type: SystemString
Additional HTML parameters.

Return Value

Type: String
See Also