TextBlock.Text Property


Gets or sets the text contents of a TextBlock.

 property Platform::String ^ Text { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Text();

void Text(winrt::hstring value);
public string Text { get; set; }
var string = textBlock.text;
textBlock.text = string;
Public Property Text As String
<TextBlock Text="string"/>
- or -

Property Value


A string that specifies the text contents of this TextBlock. The default is an empty string.

Applies to