Hi there,
I am trying to add text segments (which has different text styles) to construct a text fragment so that I can place the text fragment into a Rectangle shape. I am struggling to add line breaks or vertical gaps between text segments.
Please could you help and point me in the right direction?
Any code snippet would be great. We are using .Net C#.
You may use ‘\r\n’ escape character for a line break and TextSegment.TextState.LineSpacing property for line spacing purposes. However, if this does not fulfill what you require, please share complete code snippet along with expected output PDF document. We will further test the scenario in our environment and address it accordingly.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.