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

Why does firstLineIndent have to be -20 ?

Hello,

i´m currently implementing a PPTX with .NET Core and Syncfusion Presentation 17.2.0.35. 
The PPTX is supposed to create a list with bullets. This list can have multiple levels, which the paragraph IndentLevelNumber should support. 
But here comes the problem: 
If I do not set the FirstLineIndent to -20, the text of the paragraph will continue to write under the bullet after a line break... why? 
I need to edit the Indent of a Bullet but it seems like FirstLineIndent has to be set to -20 and has no other effect. 
If it is set to -20 the text writes under each other as expected after a line break. 

And it also says I have to set it to -20. 

Regards.

1 Reply

VA Vijayasurya Anandhan Syncfusion Team July 22, 2019 11:51 AM

Hi Steffen,

Thank you for contacting Syncfusion support.

Syncfusion Presentation library provided a support to modify the indent of a paragraph similar to Microsoft PowerPoint. Please find the below API details,
 
Microsoft PowerPoint Screenshot 
Syncfusion API 
Syncfusion API Details 
 
FirstLineIndent property is used to set a special indent of a paragraph such as (First line indent and Hanging Indent). This property works similar to highlighted property in a Microsoft PowerPoint screenshot. 
FirstLineIndent property is act as First line indent if you set a positive value and it act as Hanging indent if you set an negative values. 
 
LeftIndent property is used to set a Before text indent of a paragraph. This property works similar to highlighted property in a Microsoft PowerPoint screenshot. 
 


If I do not set the FirstLineIndent to -20, the text of the paragraph will continue to write under the bullet after a line break... why?

As per the Microsoft PowerPoint behavior, If we set an hanging indent 20 (FirstLineIndent = -20) to the bullet contained paragraph with some left indent values, It moves a bullet character alone in left side from a left indent value. (Paragraph remains its position).
 
If we set first line indent 20 (FirstLineIndent = 20) to the bullet contained paragraph with some left indent values, It moves a first line of paragraph alone in right side from a left indent value. (Bullet character remains its position).

I need to edit the Indent of a Bullet, but it seems like FirstLineIndent has to be set to -20 and has no other effect. If it is set to -20 the text writes under each other as expected after a line break.
You can able to customize the indent of an bullet from a paragraph by modifying the values of our FirstLineIndent and LeftIndent properties similar to Microsoft PowerPoint.

Please let us know if you need any further assistances in this.

Regards,
Vijayasurya A
 


Loader.
Live Chat Icon For mobile
Up arrow icon