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 setup a paragraph spacing

dear sir ,
I want to format paragraph with other property like spacing. And I don't know how to do it . I can do it easily on office word . How should I do , or does DocIO suport this function ?

ParagraphSpacing.zip

1 Reply

AD Administrator Syncfusion Team October 20, 2007 06:39 AM UTC

Hi William,

Sorry for the delayed response.

Yes , Essential DocIO has support for formatting paragraphs in a document with which the look and feel of the paragraph as well its relative positioning, with respect to adjacent paragraphs, can be modified.

Paragraph spacing
>>>>>>>>>>>>>>>>>>

You can setup paragraph spacing by accessing 'ParagraphFormat'. The following code snippet illustartes this.

[C#]

paragraph.ParagraphFormat.AfterSpacing = 10;
paragraph.ParagraphFormat.BeforeSpacing= 10;
paragraph.ParagraphFormat.LineSpacing = 2;
paragraph.ParagraphFormat.LineSpacingRule = LineSpacingRule.Multiple;

You can also refer the sample that shipped with Essential studio that demonstartes on paragraph formatting in the below location.

[Installdrive]:\Documents and Settings\Username\My Documents\Syncfusion\ EssentialStudio\5.2.0.25\Windows\DocIO.Windows \Samples\2.0\Document Formatting\ParagraphFormatting\

Please let me know if you have any other queries.

Thank you for your interest in Syncfusion products.

Regards,
Jaya

Loader.
Live Chat Icon For mobile
Up arrow icon