Bold Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the bold attribute of the style.
Syntax
public bool Bold { get; set; }Public Property Bold As BooleanExamples
The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.Bold.
FormattingStyle formattingStyle = new InlineStyle("Emphasis");
formattingStyle.Bold = true;
if (formattingStyle.Bold)
{
Console.WriteLine("Formatting Style: Bold is enabled.");
}
textControl.InlineStyles.Add((InlineStyle)formattingStyle);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Bold = True
If formattingStyle.Bold Then
Console.WriteLine("Formatting Style: Bold is enabled.")
End If
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))