Articles in this section
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()

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied