Hi,
I am struggling to alter the linespacing on the telerik.windows.documents.fixed.model.Editing.Block. I use the following line of code;
textBlock1.LineSpacing = 10
However this doesn't seem to have any effect. Nothing crashes and there is no problems running the code. If I break at this line the value is never set. I can use the Visual Studio debugger to set the value and it works perfectly. Any ideas?
Secondly when using multiline text from a database the block doesn't seem to respect newlines. I have to use the following code which seems a bit excessive.
Any help would be much appreciated.
Regards,
Shaun
I am struggling to alter the linespacing on the telerik.windows.documents.fixed.model.Editing.Block. I use the following line of code;
textBlock1.LineSpacing = 10
However this doesn't seem to have any effect. Nothing crashes and there is no problems running the code. If I break at this line the value is never set. I can use the Visual Studio debugger to set the value and it works perfectly. Any ideas?
Secondly when using multiline text from a database the block doesn't seem to respect newlines. I have to use the following code which seems a bit excessive.
01.
Private
Sub
InsertText(textBlock
As
Editing.Block, descriptionText
As
String
)
02.
Dim
ascii()
As
Byte
= System.Text.Encoding.ASCII.GetBytes(descriptionText)
03.
For
i
As
Integer
= 0
To
descriptionText.Length - 1
04.
If
ascii(i) = 13
Then
05.
textBlock.InsertLineBreak()
06.
Else
07.
textBlock.InsertText(descriptionText(i))
08.
End
If
09.
Next
10.
End
Sub
Any help would be much appreciated.
Regards,
Shaun