Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you enter a tab character in Textblock?

Is it possible to add a tab character into a textblock? It's a textblock in Xaml, but i'm adding the text in code, so it has to be done there. Is there any action like "Environment.NewLine", but for the "Tab" character?

Thanks in advance.

like image 711
Terry Avatar asked Aug 16 '11 12:08

Terry


People also ask

How do you add a tab in input?

The tab character can be inserted by holding the Alt and pressing 0 and 9 together.

How do you represent a tab in C#?

In C#, we use the \t escape character to add a tab character space in string in C#. If you use the "\t" escape character once, it adds one tab space in string. This tab character can be used in a string or just directly passed and concatenated with a string and written to console.

What is the tab character?

A tab character defines the space between two document elements. For example, you can separate numbers from list items, or columns of text, by using tabs. You can then set tab stops that define the location and alignment of the tabbed text. Click to view larger image. You can align text in different ways by using tabs.


1 Answers

You can use the vbTab constant from the Microsoft.VisualBasic namespace.

like image 80
Martin Avatar answered Nov 03 '22 00:11

Martin