This method converts a hexvalues string as 80FF into a integer. Note that you may not put a '#' at the beginning of string! There is not much error checking in this method. If the string does not represent a valid hexadecimal value it returns 0.
MainUtil Class | Sitecore Namespace