1.怎么右对齐
没点奖励吗?
// 判断日期数字 来指定显示位置
int pointX = 0;
if (e.Date.Day < 10)
{
pointX = 11;
}
else
{
pointX = 4;
}
Rectangle rect = e.Bounds;
RectangleF drawRect = new RectangleF(rect.X + pointX, rect.Y, rect.Width, rect.Height);
if(e.Date.DayOfWeek == DayOfWeek.Friday) {
e.Graphics.FillRectangle(Brushes.Red, e.Bounds);
e.Graphics.DrawString(e.Date.Day.ToString(), e.Style.Font, Brushes.White, drawRect);
e.Handled = true;
}
转载请注明出处windows之家 » win10右对齐怎么设置