Can someone please show me how to add a 10pix 'padding' inside, so that text being typed does not start bang from the rtb's left margin.
Also, please show me how to change line spacing to 1.5 so that text lines are more spaced out ?
Thanks
Printable View
Can someone please show me how to add a 10pix 'padding' inside, so that text being typed does not start bang from the rtb's left margin.
Also, please show me how to change line spacing to 1.5 so that text lines are more spaced out ?
Thanks
Hi,
You can try something like this:
vb Code:
RichtextBox1.SetValue(Paragraph.LineHeightProperty, 10)
Hope it helps,
sparrow1
Sorry, but do you have vb.net code ?
Hi,Quote:
Originally Posted by Xancholy
This one is for vb.net:
vb.net Code:
RichTextBox1.SelectionCharOffset = 10
Wkr,
sparrow1
Thanks. Is there anything for line spacing in richtextbox ?