DataGridViewCell.GetInheritedStyle 메서드

정의

셀에 적용된 스타일을 가져옵니다.

public:
 virtual System::Windows::Forms::DataGridViewCellStyle ^ GetInheritedStyle(System::Windows::Forms::DataGridViewCellStyle ^ inheritedCellStyle, int rowIndex, bool includeColors);
public virtual System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle(System.Windows.Forms.DataGridViewCellStyle inheritedCellStyle, int rowIndex, bool includeColors);
public virtual System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle(System.Windows.Forms.DataGridViewCellStyle? inheritedCellStyle, int rowIndex, bool includeColors);
abstract member GetInheritedStyle : System.Windows.Forms.DataGridViewCellStyle * int * bool -> System.Windows.Forms.DataGridViewCellStyle
override this.GetInheritedStyle : System.Windows.Forms.DataGridViewCellStyle * int * bool -> System.Windows.Forms.DataGridViewCellStyle
Public Overridable Function GetInheritedStyle (inheritedCellStyle As DataGridViewCellStyle, rowIndex As Integer, includeColors As Boolean) As DataGridViewCellStyle

매개 변수

inheritedCellStyle
DataGridViewCellStyle

DataGridViewCellStyle 상속된 셀 스타일로 채울 A입니다.

rowIndex
Int32

셀의 부모 행 인덱스입니다.

includeColors
Boolean

true반환된 셀 스타일에 상속된 색을 포함하려면 입니다. 그렇지 않으면 . false

반품

셀의 부모 행, 열 및 DataGridViewCellStyle셀에서 상속된 셀의 스타일 설정을 포함하는 A DataGridView 입니다.

예외

셀에 연결되어 DataGridView있지 않습니다.

-또는-

ColumnIndex 가 0보다 작으므로 셀이 행 머리글 셀임을 나타냅니다.

rowIndex 가 0보다 작거나 부모 DataGridView행 수보다 크거나 같은 경우

설명

이 메서드는 DataGridViewCellStyle 셀의 부모 행, 열 및 DataGridViewCellStyle개체에서 DataGridView 해당 설정을 상속하는 값을 반환합니다. 자세한 내용은 Windows Forms DataGridView 컨트롤의 셀 스타일을 참조하세요.

적용 대상

추가 정보