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

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

DataGridViewColumnHeaderCell.GetInheritedStyle メソッド

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

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

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

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

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

パラメータ

inheritedCellStyle

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

rowIndex

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

includeColors

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

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

例外例外
例外種類条件

ArgumentOutOfRangeException

rowIndex が -1 ではありません。

解説解説

このメソッドは、DataGridView の ColumnHeadersDefaultCellStyle プロパティと DefaultCellStyle プロパティによって返される DataGridViewCellStyle オブジェクトから設定継承する DataGridViewCellStyle返します詳細については、「Windows フォーム DataGridView コントロールでのセルスタイル」を参照してください

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewColumnHeaderCell クラス
DataGridViewColumnHeaderCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.ColumnHeadersDefaultCellStyle プロパティ
DataGridView.DefaultCellStyle プロパティ
DataGridViewCell.InheritedStyle プロパティ
DataGridViewCell.HasStyle プロパティ
DataGridViewCell.Style プロパティ
その他の技術情報
Windows フォーム DataGridView コントロールでのセルスタイル



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



DataGridViewColumnHeaderCell.GetInheritedStyle メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS