DataGridTableStyle.SelectionBackColor 속성

정의

선택된 셀의 배경색을 가져오거나 설정합니다.

public:
 property System::Drawing::Color SelectionBackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color SelectionBackColor { get; set; }
member this.SelectionBackColor : System.Drawing.Color with get, set
Public Property SelectionBackColor As Color

속성 값

선택된 셀의 배경색을 나타내는 Color입니다.

예제

다음 코드 예제에서는이 멤버를 사용 하는 방법을 보여 줍니다.

// Allow the user to select a Color.
ColorDialog^ myColorDialog = gcnew ColorDialog;
myColorDialog->AllowFullOpen = false;
myColorDialog->ShowHelp = true;

// Set the initial color select to the current color.
myColorDialog->Color = myGridTableStyle->SelectionBackColor;

// Show color dialog box.
myColorDialog->ShowDialog();

// Set the backcolor for the selected cells.
myGridTableStyle->SelectionBackColor = myColorDialog->Color;
// Allow the user to select a Color.
ColorDialog myColorDialog = new ColorDialog();      
myColorDialog.AllowFullOpen = false ;      
myColorDialog.ShowHelp = true ;
// Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor;
// Show color dialog box.
myColorDialog.ShowDialog();
// Set the backcolor for the selected cells. 
myGridTableStyle.SelectionBackColor = myColorDialog.Color;
' Allow the user to select a Color.
Dim myColorDialog As New ColorDialog()
myColorDialog.AllowFullOpen = False
myColorDialog.ShowHelp = True
' Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor
' Show color dialog box.
myColorDialog.ShowDialog()
' Set the backcolor for the selected cells. 
myGridTableStyle.SelectionBackColor = myColorDialog.Color

적용 대상

추가 정보