Programmatically using a tab character in .NET

前端 未结 4 1303
情歌与酒
情歌与酒 2020-12-18 18:31

Is there a way to use a tab character like a new line character inside the Environment class, instead of using \"\\t\"?

4条回答
  •  时光说笑
    2020-12-18 19:10

    If you really wanted to you, you could add a reference and use Microsoft.VisualBasic.Constants.vbTab. But the tab character is not something that changes based on your environment so System.Environment wouldn't have a property for you.

提交回复
热议问题