We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

change the hidden Fontattribute to unhidden

Thread ID:





76510 Sep 10,2008 11:14 AM UTC Sep 10,2008 12:50 PM UTC WinForms 1
Tags: DocIO
Oliver Fürst
Asked On September 10, 2008 11:14 AM UTC


I want to use DocIO to changethe FontStyle Attribute Hidden to unhidden. How can I do that ?

The other possibility would be to extract a text between to hidden text and save it in Word Format (doc). Would this be possible ?

Greetings Oliver

Bhuvaneswari P [Syncfusion]
Replied On 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


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,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon