TableLayoutSettings::SetCellPosition Method (Object^, TableLayoutPanelCellPosition)

 

Sets the TableLayoutPanelCellPosition that represents the row and the column of the cell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
void SetCellPosition(
	Object^ control,
	TableLayoutPanelCellPosition cellPosition
)

Parameters

control
Type: System::Object^

A control contained within a cell.

cellPosition
Type: System.Windows.Forms::TableLayoutPanelCellPosition

A TableLayoutPanelCellPosition that represents the cell position.

Exception Condition
ArgumentNullException

control is null.

The following example shows how to use a TableLayoutSettings object to set a cell position in a TableLayoutPanel control. For a full code listing, see How to: Implement a Custom ToolStripRenderer.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: