DataGrid.GetCurrentCellBounds メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As DataGrid Dim returnValue As Rectangle returnValue = instance.GetCurrentCellBounds
現在のセルの四隅を定義する Rectangle。

選択されたセルの Rectangle を取得するコード例を次に示します。
Private Sub DataGrid1_CurrentCellChange(ByVal sender As Object, ByVal e As EventArgs) Dim rect As Rectangle rect = DataGrid1.GetCurrentCellBounds() Console.WriteLine(rect.ToString) End Sub
private void dataGrid1_CurrentCellChange(object sender, EventArgs e) { Rectangle rect; rect = dataGrid1.GetCurrentCellBounds(); Console.WriteLine(rect.ToString()); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGrid.GetCurrentCellBounds メソッドを検索する場合は、下記のリンクをクリックしてください。

- DataGrid.GetCurrentCellBounds メソッドのページへのリンク