DataGridViewCell.InheritedStyle 속성

정의

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

public:
 property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public ReadOnly Property InheritedStyle As DataGridViewCellStyle

속성 값

DataGridViewCellStyle

셀에 현재 적용된 DataGridViewCellStyle입니다.

특성

예외

셀이 DataGridView 컨트롤에 속하지 않은 경우

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

셀을 포함하는 행이 공유 행인 경우

또는

셀이 열 머리글 셀인 경우

설명

컨트롤은 DataGridView 형식DataGridViewCellStyle의 다른 속성에서 스타일을 상속하는 셀 속성으로 표시된 스타일을 사용하여 해당 셀 InheritedStyle 을 표시합니다. 속성을 통해 Style 지정된 스타일은 다른 모든 셀 스타일 속성을 통해 지정된 스타일을 재정의하지만 셀의 모양에 영향을 주는 모든 스타일을 반드시 나타내지는 않습니다.

자세한 내용은 Windows Forms DataGridView 컨트롤의 셀 스타일을 참조하세요.

적용 대상

추가 정보