c# - How to assign the listview text to be on the right in print preview -


i have listview in form1 , in print preview use below code column text on listview on right when view them in print preview..

they on right please me how make them on right when print preview display.

 int[] x = { 40, 100, 160, 540, 650 }; //relative left margin510   int y = 450; //relative top margin   font f = listview3.font;   brush b = new solidbrush(listview3.forecolor);//    (int = 0; < listview3.items.count; i++)  {       (int j = 0; j < listview3.items[i].subitems.count; j++)       {           e.graphics.drawstring(listview3.items[i].subitems[j].text, f, b, x[j], y );//        }       y += f.height;   } 


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -