/// <summary> /// Sets <c>_msg</c> color as hexadecimal value, to specified <c>imbAttributeName</c> attribue /// </summary> /// <param name="_name">Attribute value to be set</param> /// <param name="_msg">System color value to be set</param> public imbAttribute(imbAttributeName _name, Color _msg) { name = _name.ToString(); nameEnum = _name; msg = ColorWorks.ColorToHex(_msg); objMsg = _msg; }
public static DataColumn SetTextColor(this DataColumn dc, Color col_color) { dc.ExtendedProperties.add(templateFieldDataTable.col_textColor, ColorWorks.ColorToHex(col_color)); return(dc); }