temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using DevComponents.DotNetBar.Controls;
|
||||
|
||||
namespace LittleRabbit.UserComponent
|
||||
{
|
||||
public class DataGridViewXEx : DataGridViewX
|
||||
{
|
||||
public DataGridViewXEx()
|
||||
{
|
||||
BackgroundColor = Color.White;
|
||||
AlternatingRowsDefaultCellStyle.BackColor = Color.FromArgb(249, 249, 249);
|
||||
RowPostPaint += DataGridViewXEx_RowPostPaint;
|
||||
}
|
||||
|
||||
private void DataGridViewXEx_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, RowHeadersWidth - 4, e.RowBounds.Height);
|
||||
TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), RowHeadersDefaultCellStyle.Font, rectangle, Color.DarkGray, TextFormatFlags.VerticalCenter | TextFormatFlags.Right);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user