DataGridViewColumnHeaderCell.GetInheritedStyle 메서드

정의

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

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

매개 변수

inheritedCellStyle
DataGridViewCellStyle

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

rowIndex
Int32

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

includeColors
Boolean

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

반환

DataGridViewCellStyle

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

예외

rowIndex가 -1이 아닌 경우

설명

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

적용 대상

추가 정보