"景先生毕设|www.jxszl.com

C# DataGridViewPaintParts类代码示例

2023-12-29 17:49编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中DataGridViewPaintParts类的典型用法代码示例。如果您正苦于以下问题:C#DataGridViewPaintParts类的具体用法?C#DataGridViewPaintParts怎么用?C#DataGridViewPaintParts使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:Paint protectedoverridevoidPaint(Graphicsgraphics,RectangleclipBounds,RectanglecellBounds,introwIndex,DataGridViewElementStateselementState,objectvalue,objectformattedValue,stringerrorText,DataGridViewCellStylecellStyle,DataGridViewAdvancedBorderStyleadvancedBorderStyle,DataGridViewPaintPartspaintParts) { varbuttonRectangle=newRectangle(cellBounds.X+2,cellBounds.Y+2,cellBounds.Width-4,cellBounds.Height-4); base.Paint(graphics,clipBounds,buttonRectangle,rowIndex,elementState,value,formattedValue,errorText,cellStyle,advancedBorderStyle,paintParts); varimageRectangle=newRectangle(cellBounds.X+6,cellBounds.Y+6,_detailImage.Width,_detailImage.Height); graphics.DrawImage(_detailImage,imageRectangle); }
原文链接:http://www.jxszl.com/biancheng/C/556864.html