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

''Paragraph Indenting

Hi there, Is it possible to add the ''Paragraph Indenting'' facility to the Rich Text Box for each cell. If yes, how? Please post the sample code. Thanks satish

1 Reply

AD Administrator Syncfusion Team April 13, 2004 07:30 AM UTC

You can do this. You would have to add some kind of UI code that inserts \par rtf tags in your text where you want the indent to occur. If you just want to create indented rich text and display it with paragraph indents, then you can just create the text in WordPad, save the file, open it in NotePad and copy the RTF text. Here is some text created in that manner that will display indented in a grid cell. string rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}" +@"\viewkind4\uc1\pard\fi720\ri1620\f0\fs20 Please check out Syncfusion products. They include Essential Grid, " +@"Essential Tools, Essential ExcelRW, Essential Edit, Esssential Chart, and Essential Diagram. They are all native" +@".Net code. You can find more information on our website at www.syncfusion.com.\par " +@"You can also use our Direct Trac support system to log incidents, an dget email noticification of updates. Our " +@"forum provide an online community for user questions and responses.\par " +@"}";

Loader.
Live Chat Icon For mobile
Up arrow icon