BP
Bhuvaneswari P
Syncfusion Team
September 10, 2008 12:50 PM UTC
Hi Oliver,
Yes, it is possible to show the already hidden characters by using the Character format Hidden property. Please refer the below code snippet how it can be done
[C#]
WordDocument doc = new WordDocument("sample.doc");
//Enumerate the document elements starting from sections
foreach (IWSection sec in doc.Sections)
{
foreach (IWParagraph para in sec.Paragraphs)
{
for (int i = 0; i < para.ChildEntities.Count; i++)
{
Syncfusion.DocIO.DLS.IParagraphItem pItem = para[i] as Syncfusion.DocIO.DLS.IParagraphItem;
if (pItem is WTextRange)
{
WTextRange doctext = pItem as WTextRange;
if (doctext.CharacterFormat.Hidden == true)
{
doctext.CharacterFormat.Hidden = false;
}
}
}
}
}
Please try this code and let us know if this helps you.
Best Regards,
Bhuvana