Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

[C#] Modifying the Tab size in a RichTextBox Control

$
0
0

The default Tab size in a RichTextBox is rather large, I would like to set it to a size of 4 spaces.

This is the current code I have:

this.richTextBoxPrintCtrl1.SelectionTabs = new int[] { 40, 80, 120, 160};

although this does work, but only if you use 4 tabs. I am making a code editor, so being limited to 4 tabs is not a wise choice.

Is it possible to set it for an unlimited number of tabs?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>