Using RichTextBox SelectionTabs property in winforms

Posted by Bala R on Stack Overflow See other posts from Stack Overflow or by Bala R
Published on 2010-05-20T13:28:59Z Indexed on 2010/05/20 13:30 UTC
Read the original article Hit count: 540

Filed under:
|

In a winforms application, I'm using a RichTextBox and I'm trying to reduce the output from a '\t' to 4 spaces from whatever the default is. I have this in the form's OnLoad

 _richTextBox.Text = "1\t2\t3\t4\t5";
 _richTextBox.SelectAll();
 _richTextBox.SelectionTabs = new int[]  {100,200,300,400 };

I have a breakpoint before and after this snippet. The SelectionTabs is set to {int[0]} (empty int array) before and after the assignment. Can anyone tell me why my assignment is not going through?

© Stack Overflow or respective owner

Related posts about richtextbox

Related posts about winforms