简体   繁体   中英

How to get the left location of a cell in a TableLayoutPanel in pixels on form?

How can i get the left location of a cell in a TableLayoutPanel in pixels on form in C# WinForms .Net v2.0?

Edit: I have seen this but it only has Width and Height .

I added the Width s of every cell to get the Left of a specific cell using this code:

int left = 0;
for(int i = 0; i < theCellIndex; i++)
  left += tableLayoutPanel1.GetColumnWidths()[i];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM