LineSpacing Questions

I have two questions regarding LineSpacing property.

Q1. Why doesn't it work when I set it on the Segment level? It only works when I set it at the Text level.

Sample code:

Dim s As Segment = New Segment(sText)
s.TextInfo.LineSpacing = 20   ' This line causes no effect
s.TextInfo.FontName = "Times-Roman"
s.TextInfo.FontSize = 11
oT.Segments.Add(s)

Q2. I could not make LineSpacing work for text inside a table cell.

Sample code:

Dim tf2 As Aspose.Pdf.TextInfo = New Aspose.Pdf.TextInfo
tf2.LineSpacing = 20 ' no effect!!!
tf2.FontSize = 10
tf2.Color = New Aspose.Pdf.Color("Black")
tf2.FontName = "Helvetica"
tf2.Alignment = AlignmentType.Left
...
oMRow.Cells.Add("long value text here", tf2)

Thanks

HL

Dear HL,

Thank you for considering Aspose.

1. The line spacing works for text level only. We should not provide line spcaing setting for segment level.

2. I can reproduce this problem with your code. Can you please provide a complete example?

forever wrote:

Dear HL,

Thank you for considering Aspose.

1. The line spacing works for text level only. We should not provide line spcaing setting for segment level.

2. I can reproduce this problem with your code. Can you please provide a complete example?

Thanks Tommy, please disregard question #2. It was my mistake.

HL