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

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

DataGridViewCell.GetInheritedStyle メソッド

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

セルに適用されるスタイルを取得します。

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

Public Overridable Function
 GetInheritedStyle ( _
    inheritedCellStyle As DataGridViewCellStyle, _
    rowIndex As Integer, _
    includeColors As Boolean _
) As DataGridViewCellStyle
Dim instance As DataGridViewCell
Dim inheritedCellStyle As DataGridViewCellStyle
Dim rowIndex As Integer
Dim includeColors As Boolean
Dim returnValue As DataGridViewCellStyle

returnValue = instance.GetInheritedStyle(inheritedCellStyle, rowIndex, includeColors)
public virtual DataGridViewCellStyle GetInheritedStyle (
    DataGridViewCellStyle inheritedCellStyle,
    int rowIndex,
    bool includeColors
)
public:
virtual DataGridViewCellStyle^ GetInheritedStyle (
    DataGridViewCellStyle^ inheritedCellStyle, 
    int rowIndex, 
    bool includeColors
)
public DataGridViewCellStyle GetInheritedStyle (
    DataGridViewCellStyle inheritedCellStyle, 
    int rowIndex, 
    boolean includeColors
)
public function GetInheritedStyle (
    inheritedCellStyle : DataGridViewCellStyle, 
    rowIndex : int, 
    includeColors : boolean
) : DataGridViewCellStyle

パラメータ

inheritedCellStyle

継承されたセル スタイルに設定される DataGridViewCellStyle。

rowIndex

セルの親行のインデックス。

includeColors

返されるセル スタイルに継承された色を含める場合は true。それ以外の場合は false。

戻り値
セルの親行、列、および DataGridView から継承されたセルのスタイル設定を含む DataGridViewCellStyle。

例外例外
例外の種類条件

InvalidOperationException

関連付けられた DataGridView がセルにありません。

または

ColumnIndex が 0 未満です。これは、セルが行ヘッダーのセルであることを示します。

ArgumentOutOfRangeException

rowIndex が 0 未満か、親の DataGridView に含まれている行数以上の値です。

解説解説

このメソッドは、セルの親の行、列、および DataGridView の各 DataGridViewCellStyle オブジェクトから設定を継承した DataGridViewCellStyle を返します。詳細については、「Windows フォーム DataGridView コントロールでのセルのスタイル」を参照してください。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCell クラス
DataGridViewCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
InheritedStyle
AdjustCellBorderStyle
HasStyle
Style



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataGridViewCell.GetInheritedStyle メソッド」の関連用語

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

   

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



DataGridViewCell.GetInheritedStyle メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS