TextBlock.FontSize Property

Definition

Gets or sets the font size for the text content in this element.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.FontSize.

public:
 property double FontSize { double get(); void set(double value); };
double FontSize();

void FontSize(double value);
public double FontSize { get; set; }
var double = textBlock.fontSize;
textBlock.fontSize = double;
Public Property FontSize As Double
<TextBlock FontSize="double" .../>

Property Value

Double

A non-negative value that specifies the font size, measured in pixels. The default is 11.

Applies to