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


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGridViewCell.GetInheritedStyle メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGridViewCell.GetInheritedStyle メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGridViewCell.GetInheritedStyle メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS