public void SetFontSize ( ref XEditListView lst , int nFontSize ) { lst.Font = new System.Drawing.Font ( "宋体" , nFontSize , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Pixel ); }
public void SetLineHeight ( ref XEditListView lst , int nHeight ) { ImageList imgList = new ImageList (); imgList.ImageSize = new Size ( 1 , nHeight );//分别是宽和高 lst.SmallImageList = imgList; //这里设置listView的SmallImageList ,用imgList将其撑大 }