RichTextBlock.FontSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the font size for the text content in this element.
public:
property double FontSize { double get(); void set(double value); };
double FontSize();
void FontSize(double value);
public double FontSize { get; set; }
var double = richTextBlock.fontSize;
richTextBlock.fontSize = double;
Public Property FontSize As Double
<RichTextBlock FontSize="double" .../>
Property Value
double
A non-negative value that specifies the font size, measured in pixels. The default is 11.
Remarks
Set the FontSize property to specify the default font size to use for all text in the RichTextBlock. You can override this value for specific text elements in the RichTextBlock by setting the TextElement.FontSize property.