TableLayoutPanel.SetCellPosition 方法

定义

设置表示单元格的行号和列号的 TableLayoutPanelCellPosition

public:
 void SetCellPosition(System::Windows::Forms::Control ^ control, System::Windows::Forms::TableLayoutPanelCellPosition position);
public void SetCellPosition (System.Windows.Forms.Control control, System.Windows.Forms.TableLayoutPanelCellPosition position);
member this.SetCellPosition : System.Windows.Forms.Control * System.Windows.Forms.TableLayoutPanelCellPosition -> unit
Public Sub SetCellPosition (control As Control, position As TableLayoutPanelCellPosition)

参数

control
Control

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

position
TableLayoutPanelCellPosition

表示单元格的行和列的 TableLayoutPanelCellPosition

适用于