TableLayoutSettings::GetCellPosition Method (Object^)
.NET Framework (current version)
Gets the TableLayoutPanelCellPosition that represents the row and the column of the cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- control
-
Type:
System::Object^
A control contained within a cell.
Return Value
Type: System.Windows.Forms::TableLayoutPanelCellPositionA TableLayoutPanelCellPosition that represents the cell position.
| Exception | Condition |
|---|---|
| ArgumentNullException | control is null. |
The following example shows how to use a TableLayoutSettings object to get a cell position in a TableLayoutPanel control. For a full code listing, see How to: Implement a Custom ToolStripRenderer.
.NET Framework
Available since 2.0
Available since 2.0
Show: