The ApplyStyleToParagraph example method can be used to apply a style to a paragraph. You must also use the following using directives or Imports statements to compile the code in this topic. You must explicitly reference the following assemblies in your project:ĭocumentFormat.OpenXml (installed by the Open XML SDK) To use the sample code in this topic, you must install the Open XML SDK 2.5. It contains an example ApplyStyleToParagraph method to illustrate this task, plus several supplemental example methods to check whether a style exists, add a new style, and add the styles part. ![]() ![]() This topic shows how to use the classes in the Open XML SDK 2.5 for Office to programmatically apply a style to a paragraph within a word processing document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |