Gets the System.Windows.Forms.TableLayoutPanelCellPosition that represents the row and the column of the cell that contains the control.
A System.Windows.Forms.TableLayoutPanelCellPosition that represents the cell position.
The TableLayoutPanel.GetPositionFromControl(Control) method returns the actual current position of control, even if its position is determined by the TableLayoutPanel.LayoutEngine. This method takes into account the entire System.Windows.Forms.TableLayoutPanel control state, including column or row spanning and when the TableLayoutPanel.LayoutEngine has placed a control with its Column and Row properties set to -1. This is equivalent to the situation in which TableLayoutPanel.GetColumn(Control) and TableLayoutPanel.GetRow(Control) return -1.