Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
what is rtf for space or tab.
rtf means rich text format
for e.g. rtf for Enter = par
we want rtf for space to have output format as

my name is Astika.
   my name is Astika.
Posted
Updated 23-Jan-11 2:41am
v2

The Rtf code for tab is \tab (not surprising).

For space, why do you need a code? Just use the space literal directly.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Jan-11 12:45pm    
Simple as that, right? (+5, but the answer by Henry is kind of better :-)
Nish Nishant 23-Jan-11 18:20pm    
Thank you.
You can quite easily resolve questions like this for yourself.

Set up a simple Windows Forms project with an RTB in it. Load a *.rtf file into it (there are loads of examples around) then by using the RichTextBox.Rtf[^] property you can investigate the 'codes' applied.
 
Share this answer
 
Comments
Nish Nishant 23-Jan-11 8:52am    
Or even browse one of several available online specs. Example:
http://www.biblioscape.com/rtf15_spec.htm
Henry Minute 23-Jan-11 8:54am    
True, but not as much fun. :)
Nish Nishant 23-Jan-11 8:56am    
Agree :-)
Sergey Alexandrovich Kryukov 23-Jan-11 12:47pm    
I would say, this answer is better (my 5) -- really teach something, not just covering someones laziness
(sorry Astika, you could do quite a number of things to figure out this simple thing) :-)
Sergey Alexandrovich Kryukov 23-Jan-11 12:48pm    
Another one: create, save appropriate RTF file and then open it in any binary editor.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900