Hi team,
I used below mention code to enable the Auto color but its not working kindly help me.
NodeCollection nodes = doc.GetChildNodes(NodeType.Paragraph, true);
foreach (Paragraph para in nodes)
{
if (para.ParagraphFormat.StyleIdentifier == StyleIdentifier.Heading2)
{
foreach (Run r in para.Runs)
{
r.Font.Size = 11;
r.Font.AutoColor
}
}
}