![]() MessageBox.Show("Normal Indent style applied") ' such as Arabic or Hebrew, use the Font.SizeBi property instead of Font.Size. ![]() To change the font size for a right-to-left language, MessageBox.Show("Normal Indent style applied") ĭim rng As Word.Range = Me.Paragraphs(1).Range such as Arabic or Hebrew, use the Font.SizeBi property instead of Font.Size. To use this code, run it from the ThisDocument class in your project. The following example can be used in a document-level customization. Document-level customization example To format text using a document-level customization Then the code calls the Undo method once, and displays a message box. It applies the Normal Indent style and displays a message box to pause the code. The next section calls the Undo method of the Document host item (for a document-level customization) or the Document class (for a VSTO Add-in) three times. It then selects the range and displays a message box to pause before executing the next section of code. The following example selects the first paragraph in the document and changes the font size, the font name, and the alignment. For more information, see Features available by Office application and project type. ![]() You can use the Range object to format text in a Microsoft Office Word document.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |