FontWeight Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the font weight for the text displayed by the SpellCheckDialog labels, the preview, suggestion list, suggestion dictionary combo box and the cancel button.
Syntax
public FontWeight FontWeight { get; set; }Public Property FontWeight As FontWeightExamples
The following example uses SpellCheckDialog.FontWeight to configure font weight as part of the spell check dialog workflow. The configured value is checked before the workflow continues.
spellCheckDialog.FontWeight = System.Windows.FontWeights.Normal;
Console.WriteLine($"Font Weight used by Spell Check Dialog: {spellCheckDialog.FontWeight}");spellCheckDialog.FontWeight = System.Windows.FontWeights.Normal
Console.WriteLine($"Font Weight used by Spell Check Dialog: {spellCheckDialog.FontWeight}")