Category / Section
How to handle interconversion of Tabs and Spaces in WinForms SyntaxEditor (EditControl)?
1 min read
Interconversion of tabs and spaces
The EditControl has the TabifySelection and UntabifySelection methods for this purpose and they are similar to the ones in Visual Studio.
The TabifySelection method lets you convert the spaces in the selected region into equivalent number of tabs.
C#
this.editControl1.TabifySelection();
VB
Me.editControl1.TabifySelection()
The UntabifySelection method lets you convert the tabs in the selected region into equivalent number of spaces.
C#
this.editControl1.UntabifySelection();
VB
Me.editControl1.UntabifySelection()