/// <summary> /// 根据设置背景色的函数返回背景色 /// </summary> /// <param name="source">源数据</param> /// <returns>背景色</returns> public string GetBackGroundColor(object source) { if (BackGroundFunc == null) { return ""; } else { return BackGroundFunc.Invoke(source as T); } }
public System.Drawing.Color GetBackGroundColor(T source) { if (BackGroundFunc == null) { return(System.Drawing.Color.Empty); } else { return(BackGroundFunc.Invoke(source)); } }