DataGridViewRow.InheritedStyle プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewRow.InheritedStyle プロパティの意味・解説 

DataGridViewRow.InheritedStyle プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

行に対して有効なセル スタイルを取得します。

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

Public Overrides ReadOnly
 Property InheritedStyle As DataGridViewCellStyle
Dim instance As DataGridViewRow
Dim value As DataGridViewCellStyle

value = instance.InheritedStyle
public override DataGridViewCellStyle InheritedStyle { get;
 }
public:
virtual property DataGridViewCellStyle^ InheritedStyle {
    DataGridViewCellStyle^ get () override;
}
/** @property */
public DataGridViewCellStyle get_InheritedStyle ()
public override function get
 InheritedStyle () : DataGridViewCellStyle

プロパティ値
行内のセルに対する書式とスタイルの情報を指定する DataGridViewCellStyle。

例外例外
例外の種類条件

InvalidOperationException

行が DataGridView コントロール内にあり、共有行です。

解説解説

このプロパティは、各セルに適用される列スタイルとは無関係に、行内のすべてのセルに適用されるセル スタイルを確認する場合に便利です。行の InheritedStyle プロパティは、その値を以下のプロパティから継承します。

  • DefaultCellStyle

  • DataGridView.AlternatingRowsDefaultCellStyle (インデックス番号が奇数の行)

  • DataGridView.RowsDefaultCellStyle

  • DataGridView.DefaultCellStyle

セル スタイル継承の詳細については、「Windows フォーム DataGridView コントロールでのセルのスタイル」を参照してください。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewRow クラス
DataGridViewRow メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCellStyle クラス
DataGridViewRow.DefaultCellStyle プロパティ
DataGridView.AlternatingRowsDefaultCellStyle プロパティ
DataGridView.RowsDefaultCellStyle プロパティ
DataGridView.DefaultCellStyle プロパティ
その他の技術情報
Windows フォーム DataGridView コントロールでのセルのスタイル
Windows フォーム DataGridView コントロールを拡張するための推奨される手順



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataGridViewRow.InheritedStyle プロパティ」の関連用語

DataGridViewRow.InheritedStyle プロパティのお隣キーワード
検索ランキング

   

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



DataGridViewRow.InheritedStyle プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS