c# . net how do I reference to modify the line spacing of text within blocks attributes

c# . net how do I reference to modify the line spacing of text within blocks attributes

jeff.wangD95HG
Collaborator Collaborator
197 Views
2 Replies
Message 1 of 3

c# . net how do I reference to modify the line spacing of text within blocks attributes

jeff.wangD95HG
Collaborator
Collaborator

I am trying to build a function that will update the attibute of a dynamic block with multiple lines. however I also want to adjust the line spacing within the dynamic block. How do I go about referencing this function?

 

basically modifying this within the dynamic block

jeffwangD95HG_0-1740413163283.png

 

I tried all the mtext class but it doesn't work. I believe these text are multi-line text instead of mtext.

   LineSpacingStyle

   LineSpacingFactor

   LineSpaceDistance

0 Likes
Accepted solutions (1)
198 Views
2 Replies
Replies (2)
Message 2 of 3

jeff.wangD95HG
Collaborator
Collaborator

i tried

attRef.MTextAttribute.LineSpacingFactor = 2;
attRef.MTextAttribute.LineSpaceDistance = 10;

and they don't seem to be doing anything

 

0 Likes
Message 3 of 3

jeff.wangD95HG
Collaborator
Collaborator
Accepted solution

ok I figured it out.

I didn't line break properly. I need to use //p instead of /n for my text contents

0 Likes