FontSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the font's size of the style.
Syntax
public int FontSize { get; set; }Public Property FontSize As IntegerExamples
The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.FontSize.
FormattingStyle formattingStyle = new InlineStyle("Emphasis");
formattingStyle.FontSize = 10;
Console.WriteLine($"Font Size used by Formatting Style: {formattingStyle.FontSize}");
textControl.InlineStyles.Add((InlineStyle)formattingStyle);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.FontSize = 10
Console.WriteLine($"Font Size used by Formatting Style: {formattingStyle.FontSize}")
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))