C#/VB.NET: How to Apply Formatting to Characters in Word
Character format settings are used to control how characters are displayed and printed on the screen. The character formats in Word documents include: font, font size, font color, highlight color, border, underline, italic, shaded word, emphasis, etc. Readers can be drawn to important points of content by well-formatted text. Applying character formatting can make simple documents more attractive than plain text alone. This article will introduce you an efficient and convenient method to apply formatting to characters in Word programmatically. For your reference, we have attached the C#/VB.NET code. Programming Environment In this test, Free Spire.Doc for .NET is introduced into the program. The Spire.Doc.dll file can be referenced by: Method 1: Download Free Spire.Doc for .NET locally, unzip it, and install it. After the installation is complete, find Spire.Doc.dll in the BIN folder under the installation path. Then open the "Solution Explorer" in Visual Studio, ri...