如何从字符串开头删除空格 [英] how to remove space from beginning of the string
本文介绍了如何从字符串开头删除空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个像我的char ="一千个单词的字符串
如何从字符串开头删除空格?
我想像一千个单词那样使用o/p
Hi,
I have a string like my char= " thousand words"
how do I remove space from beginning of the string?
I want o/p like thousand words
推荐答案
我们将其称为 ^ ].
使用此-
txtname.Text.TrimStart();
这篇关于如何从字符串开头删除空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文