DataGrid.CaptionText Vlastnost

Definice

Získá nebo nastaví text titulku okna mřížky.

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

Hodnota vlastnosti

String

Řetězec, který se má zobrazit jako titulek okna mřížky. Výchozí hodnota je prázdný řetězec ("").

Příklady

Následující příklad kódu nastaví titulek 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

Platí pro

Viz také