DataGridViewImageCell.GetErrorIconBounds メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
セルのエラー アイコンが表示されている場合に、そのエラー アイコンを囲む外接する四角形を返します。
protected:
override System::Drawing::Rectangle GetErrorIconBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected override System.Drawing.Rectangle GetErrorIconBounds (System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
override this.GetErrorIconBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overrides Function GetErrorIconBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle
パラメーター
- graphics
- Graphics
セルのグラフィックス コンテキスト。
- cellStyle
- DataGridViewCellStyle
セルに適用する DataGridViewCellStyle。
- rowIndex
- Int32
セルの親行のインデックス。
戻り値
セルのエラー アイコンが表示されている場合は、そのエラー アイコンに外接する Rectangle、それ以外の場合は Empty。
適用対象
こちらもご覧ください
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET