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.
The tab character can be inserted by holding the Alt and pressing 0 and 9 together.
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.
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.
You can use the vbTab
constant from the Microsoft.VisualBasic
namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With