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.
Unfortunately, activation email could not send to your email. Please try again.

How to different style text in paragraph and tab it

Thread ID:

Created:

Updated:

Platform:

Replies:

90814 Oct 19,2009 07:31 PM Nov 6,2009 12:00 PM Windows Forms 8
loading
Tags: DocIO
Andreas Hirtzel
Asked On October 19, 2009 07:31 PM

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)

Karthik M [Syncfusion]
Replied On October 20, 2009 05:15 AM

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

Andreas Hirtzel
Replied On October 28, 2009 10:27 AM

Works perfect. Thank you.

Andreas Hirtzel
Replied On October 28, 2009 02:14 PM

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

Jafrin [Syncfusion]
Replied On October 31, 2009 05:01 AM

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

Andreas Hirtzel
Replied On October 31, 2009 10:03 AM

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

Jafrin [Syncfusion]
Replied On November 5, 2009 01:10 AM

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

Andreas Hirtzel
Replied On November 5, 2009 05:25 AM

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

Regards,
Andreas

Jafrin [Syncfusion]
Replied On November 6, 2009 12:00 PM

Hi Andreas,

Thank you for your update.

The special characters used in DocIO are “\n”,”\r”,”\0” and “\v”. The characters “\n” 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

CONFIRMATION

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.

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.

;