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 입니다.

rowIndex
Int32

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

includeColors
Boolean

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

반환

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

예외

셀과 연결된 DataGridView가 없는 경우

또는

ColumnIndex가 0보다 작아 셀이 행 머리글 셀임을 나타내는 경우

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

설명

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

적용 대상

추가 정보