DataGridView.GetCellDisplayRectangle メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridView.GetCellDisplayRectangle メソッドの意味・解説 

DataGridView.GetCellDisplayRectangle メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

セルの表示領域を表す四角形を返します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Function GetCellDisplayRectangle ( _
    columnIndex As Integer, _
    rowIndex As Integer, _
    cutOverflow As Boolean _
) As Rectangle
Dim instance As DataGridView
Dim columnIndex As Integer
Dim rowIndex As Integer
Dim cutOverflow As Boolean
Dim returnValue As Rectangle

returnValue = instance.GetCellDisplayRectangle(columnIndex, rowIndex, cutOverflow)
public Rectangle GetCellDisplayRectangle (
    int columnIndex,
    int rowIndex,
    bool cutOverflow
)
public:
Rectangle GetCellDisplayRectangle (
    int columnIndex, 
    int rowIndex, 
    bool cutOverflow
)
public Rectangle GetCellDisplayRectangle (
    int columnIndex, 
    int rowIndex, 
    boolean cutOverflow
)
public function GetCellDisplayRectangle (
    columnIndex : int, 
    rowIndex : int, 
    cutOverflow : boolean
) : Rectangle

パラメータ

columnIndex

目的のセルの列インデックス。

rowIndex

目的のセルの行インデックス。

cutOverflow

セルの表示部分だけを取得する場合は true。セル境界全体を取得する場合は false。

戻り値
セルの表示領域の四角形を表す Rectangle。

例外例外
例外の種類条件

ArgumentOutOfRangeException

columnIndex が -1 未満か、コントロールの列数 -1 を上回っています。

または

rowIndex が -1 未満か、コントロールの行数 -1 を上回っています。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「DataGridView.GetCellDisplayRectangle メソッド」の関連用語

DataGridView.GetCellDisplayRectangle メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridView.GetCellDisplayRectangle メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS