星空外围足球网(

logo DevExpress WinForm中文手册

如何自定义打印外观


立即下载DevExpress WinForms

下面的示例代码演示了如何将打印外观和背景颜色自定义应用于网格控件中的偶数行。

C#:

gridView1.OptionsPrint.UsePrintStyles = true;
// Enable the AppearancePrint.EvenRow property's settings.
gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
// Set the background color of the even rows.
gridView1.AppearancePrint.EvenRow.BackColor = Color.LightYellow;

VB.NET:

GridView1.OptionsPrint.UsePrintStyles = True
' Enable the AppearancePrint.EvenRow property's settings.
GridView1.OptionsPrint.EnableAppearanceEvenRow = True
' Set the background color of the even rows.
GridView1.AppearancePrint.EvenRow.BackColor = Color.LightYellow

结果如下图所示:

结果
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP
188BET体育网(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 永利网上滚球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 博鱼信誉足球大全(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 盛凯国际网上盘口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 半岛真人十大入口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 腾曜集团最大足球网址(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 网络知名boyu·博鱼盘口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 朗驰娱乐网上(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新)