DataGridTableStyle.ResetLinkColor 메서드

정의

LinkColor 속성을 기본값으로 다시 설정합니다.

public:
 void ResetLinkColor();
public void ResetLinkColor ();
member this.ResetLinkColor : unit -> unit
Public Sub ResetLinkColor ()

예제

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

// String variable used to show message.
String^ myString = "Link color changed from: ";

// Store current foreground color of selected cells.
Color myCurrentColor = myDataGridTableStyle->LinkColor;
myString = String::Concat( myString, myCurrentColor );

// Reset link color to default.
myDataGridTableStyle->ResetLinkColor();
myString = String::Concat( myString, " to " );
myString = String::Concat( myString, myDataGridTableStyle->LinkColor );

// Show information about changes in color setting.
MessageBox::Show( myString, "Link line color information" );
// String variable used to show message.   
string myString = "Link color changed from: ";
// Store current foreground color of selected cells.
Color myCurrentColor = myDataGridTableStyle.LinkColor;
myString += myCurrentColor.ToString();
// Reset link color to default.
myDataGridTableStyle.ResetLinkColor();
myString += "  to ";
myString += myDataGridTableStyle.LinkColor.ToString();
// Show information about changes in color setting.  
MessageBox.Show(myString, "Link line color information");
' String variable used to show message.   
Dim myString As String = "Link color changed from: "
' Store current foreground color of selected cells.
Dim myCurrentColor As Color = myDataGridTableStyle.LinkColor
myString += myCurrentColor.ToString()
' Reset link color to default.
myDataGridTableStyle.ResetLinkColor()
myString += "  to "
myString += myDataGridTableStyle.LinkColor.ToString()
' Show information about changes in color setting.  
MessageBox.Show(myString, "Link line color information")

설명

일반적으로 디자이너를 만들거나 컨트롤을 통합하는 고유한 컨트롤을 DataGridTableStyle 만드는 경우 이 메서드를 DataGridTableStyle사용합니다. 이 메서드를 ShouldSerializeLinkColor 사용하여 속성 값이 기본값에서 변경되었는지 여부를 확인할 수 있습니다.

적용 대상

추가 정보