DataGridViewColumnHeaderCell.GetInheritedStyle 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
셀에 적용된 스타일을 가져옵니다.
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);
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 상속된 셀 스타일로 채울 A입니다.
- rowIndex
- Int32
셀의 부모 행 인덱스입니다.
- includeColors
- Boolean
true반환된 셀 스타일에 상속된 색을 포함하려면 입니다. 그렇지 않으면 . false
반품
셀의 부모 행, 열 및 DataGridViewCellStyle셀에서 상속된 셀의 스타일 설정을 포함하는 A DataGridView 입니다.
예외
rowIndex 가 -1이 아닌 경우
설명
이 메서드는 DataGridViewCellStyle 반환된 개체 및 속성에서 DataGridViewCellStyle 해당 설정을 상속하는 ColumnHeadersDefaultCellStyle 값을 반환합니다 DefaultCellStyleDataGridView. 자세한 내용은 Windows Forms DataGridView 컨트롤의 셀 스타일을 참조하세요.
적용 대상
추가 정보
- DataGridView
- ColumnHeadersDefaultCellStyle
- DefaultCellStyle
- InheritedStyle
- HasStyle
- Style
- Windows Forms DataGridView 컨트롤에서 셀 스타일