决定一个人富有的三个条件,一是出身,二是运气,三是努力
If you can dream it,you can do it! Nothing Impossible~
下面是我在做项目时遇到的问题,将横排文本变成竖排文本,自己在朋友的帮助下写了一个方法:
private void Str_Title()
    {
        string s = "金额(元)";
        char[] title = s.ToCharArray();
        string a="";
        int n = s.IndexOf("(");
        string[] str = new string[50];
        for (int i = 0; i < n; i++)
        {
            str[i] = title[i].ToString() + "\n";
        }
        foreach(string cr  in  str)
            a=a+cr;
        Session["title"] = a+s.Substring(n);
    }
如有其它好的方法,大家可以共同交流一下~
posted on   ZEKELOVE  阅读(816)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示