TableLayoutPanel.GetCellPosition(Control) 方法

定义

获取表示单元格的行号和列号的 TableLayoutPanelCellPosition

public:
 System::Windows::Forms::TableLayoutPanelCellPosition GetCellPosition(System::Windows::Forms::Control ^ control);
public System.Windows.Forms.TableLayoutPanelCellPosition GetCellPosition (System.Windows.Forms.Control control);
member this.GetCellPosition : System.Windows.Forms.Control -> System.Windows.Forms.TableLayoutPanelCellPosition
Public Function GetCellPosition (control As Control) As TableLayoutPanelCellPosition

参数

control
Control

一个包含在单元格中的控件。

返回

TableLayoutPanelCellPosition

表示单元格位置的 TableLayoutPanelCellPosition

适用于