UIHelperGetAccessibleImageMarkup Method |
Returns accessible-friendly image markup based on image URL or font icon class.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax 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.Base.Web.UIFontIconSizeEnum
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:
StringSee Also