title: How to change font size of .doc document all paragraphs using spire.doc dll in c# windows application
body: <p>In my application, I need to load .doc application for change font size. It's working for single paragraphs but when i need </p>
  
  <p>to change entire paragraphs font size it is not working for all paragraphs.</p>
  
  <p>I tried the below </p>
  
  <pre><code>Section s = document.Sections[0];
              int i = s.Paragraphs.Count;
              ParagraphStyle style = new ParagraphStyle(document);
  
              for (int j = 0; j &lt; i; j++)
              {              
                  Spire.Doc.Documents.Paragraph p = s.Paragraphs[j];
  
                  style.CharacterFormat.FontName = "Times New Roman";
                  style.CharacterFormat.FontSize = 20;
                  document.Styles.Add(style);
                  p.ApplyStyle(style.Name);
              }
  </code></pre>
  
  <p>The above is not working how can i change font size for all paragraphs entire document where i did mistake in loop can anyone please tell me.</p>
  
  <p>Thank you</p>