DataGrid.CaptionText 속성

정의

표 창 캡션의 텍스트를 가져오거나 설정합니다.

public:
 property System::String ^ CaptionText { System::String ^ get(); void set(System::String ^ value); };
public string CaptionText { get; set; }
member this.CaptionText : string with get, set
Public Property CaptionText As String

속성 값

String

표 창 캡션으로 표시될 문자열입니다. 기본값은 빈 문자열("")입니다.

예제

다음 코드 예제에서는 캡션을 System.Windows.Forms.DataGrid설정합니다.

if ( dataGrid1->CaptionText == "" )
{
   dataGrid1->CaptionText = "Microsoft DataGrid";
}
if(dataGrid1.CaptionText == "")
dataGrid1.CaptionText = "Microsoft DataGrid";
If DataGrid1.CaptionText = "" Then
    DataGrid1.CaptionText = "Microsoft DataGrid"
End If

적용 대상

추가 정보