.NET Framework クラス ライブラリ
TableLayoutPanel..::.GetPositionFromControl メソッド

更新 : 2007 年 11 月

コントロールを格納するセルの行と列を表す TableLayoutPanelCellPosition を取得します。

名前空間 :  System.Windows.Forms
アセンブリ :  System.Windows.Forms (System.Windows.Forms.dll 内)

構文

Visual Basic (宣言)
Public Function GetPositionFromControl ( _
    control As Control _
) As TableLayoutPanelCellPosition
Visual Basic (使用法)
Dim instance As TableLayoutPanel
Dim control As Control
Dim returnValue As TableLayoutPanelCellPosition

returnValue = instance.GetPositionFromControl(control)
C#
public TableLayoutPanelCellPosition GetPositionFromControl(
    Control control
)
Visual C++
public:
TableLayoutPanelCellPosition GetPositionFromControl(
    Control^ control
)
J#
public TableLayoutPanelCellPosition GetPositionFromControl(
    Control control
)
JScript
public function GetPositionFromControl(
    control : Control
) : TableLayoutPanelCellPosition

パラメータ

control
型 : System.Windows.Forms..::.Control

セルに含まれるコントロール。

解説

GetPositionFromControl メソッドは、位置が LayoutEngine によって決定される場合でも、control の実際の現在位置を返します。このメソッドは、列スパンまたは行スパン、および LayoutEngineColumn プロパティと Row プロパティが -1 に設定されたコントロールをいつ配置したかなど、TableLayoutPanel コントロールの状態全体を考慮します。これは、GetColumn および GetRow が -1 を返す状況と同じです。

プラットフォーム

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.5、3.0、2.0
参照

参照

タグ :


Page view tracker