根据给定的日期给 dateEdit 控件增加颜色
时间:2014-07-22 23:06:43
收藏:0
阅读:628
private void dateEdit1_DrawItem(object sender,
DevExpress.XtraEditors.Calendar.CustomDrawDayNumberCellEventArgs
e)
{
if
(e.Date.ToString("yyyy-MM-dd") ==
"2014-01-03")
{
RectangleF rect = new RectangleF(e.Bounds.Location,
e.Bounds.Size);
Color backColor =
Color.Red;
e.Graphics.FillRectangle(new SolidBrush(backColor),
rect);
}
}
原文:http://www.cnblogs.com/xiajing12345/p/3515112.html
评论(0)