DataGridViewAdvancedBorderStyle.Left 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
셀의 왼쪽 테두리에 대한 스타일을 가져옵니다.
public:
property System::Windows::Forms::DataGridViewAdvancedCellBorderStyle Left { System::Windows::Forms::DataGridViewAdvancedCellBorderStyle get(); void set(System::Windows::Forms::DataGridViewAdvancedCellBorderStyle value); };
public System.Windows.Forms.DataGridViewAdvancedCellBorderStyle Left { get; set; }
member this.Left : System.Windows.Forms.DataGridViewAdvancedCellBorderStyle with get, set
Public Property Left As DataGridViewAdvancedCellBorderStyle
속성 값
DataGridViewAdvancedCellBorderStyle 값 중 하나입니다.
예외
이 속성을 설정할 때 지정된 값이 유효한 DataGridViewAdvancedCellBorderStyle이 아닌 경우
이 속성을 설정할 때 지정된 값이 NotSet입니다.
또는
이 속성을 설정할 때 지정된 값이 InsetDouble 또는 OutsetDouble이고 이 DataGridViewAdvancedBorderStyle 인스턴스에 DataGridView 속성 값이 true
인 RightToLeft 컨트롤이 연결되어 있는 경우
예제
다음 코드 예제에서는이 속성의 사용을 보여 줍니다. 이 예제는에서 사용할 수 있는 보다 큰 예제의 일부는 DataGridViewAdvancedBorderStyle 클래스 개요입니다.
public override DataGridViewAdvancedBorderStyle AdjustedTopLeftHeaderBorderStyle
{
get
{
DataGridViewAdvancedBorderStyle newStyle =
new DataGridViewAdvancedBorderStyle();
newStyle.Top = DataGridViewAdvancedCellBorderStyle.None;
newStyle.Left = DataGridViewAdvancedCellBorderStyle.None;
newStyle.Bottom = DataGridViewAdvancedCellBorderStyle.Outset;
newStyle.Right = DataGridViewAdvancedCellBorderStyle.OutsetDouble;
return newStyle;
}
}
Public Overrides ReadOnly Property AdjustedTopLeftHeaderBorderStyle() _
As DataGridViewAdvancedBorderStyle
Get
Dim newStyle As New DataGridViewAdvancedBorderStyle()
With newStyle
.Top = DataGridViewAdvancedCellBorderStyle.None
.Left = DataGridViewAdvancedCellBorderStyle.None
.Bottom = DataGridViewAdvancedCellBorderStyle.Outset
.Right = DataGridViewAdvancedCellBorderStyle.OutsetDouble
End With
Return newStyle
End Get
End Property