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. Image for the cookie policy date
close icon

How to different style text in paragraph and tab it

Hi,

how can I style text in a paragraph different by using AppendText method. I have to use tabs, too. It should looks like this.

Label(bold) >(tab) Comment(regular)

8 Replies

KM Karthik M Syncfusion Team October 20, 2009 09:15 AM UTC

Hi Andres,

Thank you for using Syncfusion Products.

We need to make use of WTextRange for applying different formatting to the same paragraph. Could you please try with the sample from the below location and let us know if this helps.

http://www.syncfusion.com/uploads/redirect.aspx?file=ParagraphFormatting_ffcf939a.zip&team=development

Regards,
Karthik


AH Andreas Hirtzel October 28, 2009 02:27 PM UTC

Works perfect. Thank you.


AH Andreas Hirtzel October 28, 2009 06:14 PM UTC

What is "/t"? Where is this character registered? Are there any other characters?


JA Jafrin Syncfusion Team October 31, 2009 09:01 AM UTC

Hi Andreas,

Thank you for using Syncfusion products.

The “\t” character is used to insert tab in the document and it is registered in WTextRange. Using “\t” is the only way to insert tab in a document.

Please let us know if you have any questions.

Regards,
Jafrin J


AH Andreas Hirtzel October 31, 2009 02:03 PM UTC

Thank you. Are there other special characters that I can use with DocIO? Is there a documentation for that?


JA Jafrin Syncfusion Team November 5, 2009 06:10 AM UTC

Hi Andreas,

Thank you for your patience.

The another special character used in DocIO is “\v”. “\v” insert a line break in the document. Could you please find the sample from the below link.

Sample:
http://files.syncfusion.com/support/DocIO.Web/Forum/90814/SpecialCharacter.zip

Please let us know if you have any questions.

Regards,
Jafrin J


AH Andreas Hirtzel November 5, 2009 10:25 AM UTC

Thank you, Jafrin. I have found other special characters in some samples, like "" and "\r". But I can't find these characters in your documentation. Please provide a list of it.

Regards,
Andreas


JA Jafrin Syncfusion Team November 6, 2009 05:00 PM UTC

Hi Andreas,

Thank you for your update.

The special characters used in DocIO are “”,”\r”,”\0” and “\v”. The characters “” and “\r” adds a new paragraph in the document,“\v” inserts a line break and “\0” insert a space in the document. Could you please find the sample from the below link.

Sample:
http://files.syncfusion.com/support/DocIO.Web/Forum/90814/UpdatedSpecialCharacter.zip

Please let us know if you have any questions.

Regards,
Jafrin J

Loader.
Live Chat Icon For mobile
Up arrow icon