使用COM控件时颜色值通常为OLE_COLOR类型,数据类型为uint或int,通常需要将Color类转换过去。
可用方法之一为:用ColorTranslator类的ToOle。
style.BrushColor = (uint)ColorTranslator.ToOle(Color.Yellow);