@alexey.noskov I am trying to change the default language to English(US) but the below code, I used it’s not working. Kindly help me.
Please find the below input and expected output word document.
Input_headding3 (2).docx (22.4 KB)
Expected_output200 (1).docx (21.4 KB)
public static void ListBullet(Document doc)
{
doc.StartTrackRevisions("yuvaraj", DateTime.Now);
List<Paragraph> listItems = doc.GetChildNodes(NodeType.Paragraph, true).Cast<Paragraph>()
.Where(p => p.IsListItem && p.ListFormat.ListLevelNumber == 0 &&
p.ListFormat.ListLevel.NumberStyle == NumberStyle.Bullet).ToList();
foreach (Paragraph p in listItems)
{
CultureInfo info = new CultureInfo("en-US");
doc.Styles.DefaultFont.LocaleId = info.LCID;
}
}