Forums - C# Corner

Forum guidelines
chetan Allipur

chetan Allipur

  • 1.2k
  • 475
  • 37.1k

How to get current document styles from word document?

Jul 11 2018 11:54 PM
Hi
I want current styles in word document. But I am getting all word styles. Below is my code
 
foreach (Microsoft.Office.Interop.Word.Style styles in doc1.Styles)
{
if (styles.BuiltIn == true)
{
GetWordStyles.Add(styles.NameLocal);
}
else 
{
GetCustomStyles.Add(styles.NameLocal);
}
}
 
 
Please anyone help me 

Answers (3)