【发布时间】:2014-10-05 07:54:51
【问题描述】:
如何在 C# WinForms .Net v2.0 中以像素为单位获取TableLayoutPanel 中单元格的左侧位置?
编辑:我见过this,但它只有Width和Height。
【问题讨论】:
标签: c# .net winforms cell tablelayoutpanel
如何在 C# WinForms .Net v2.0 中以像素为单位获取TableLayoutPanel 中单元格的左侧位置?
编辑:我见过this,但它只有Width和Height。
【问题讨论】:
标签: c# .net winforms cell tablelayoutpanel
我添加了每个单元格的Widths 以获得使用此代码的特定单元格的Left:
int left = 0;
for(int i = 0; i < theCellIndex; i++)
left += tableLayoutPanel1.GetColumnWidths()[i];
【讨论】: