private void txtHanZhi_TextChanged(object sender, EventArgs e) { char[] chr = txtHanZhi.Text.ToCharArray(); //转换成字符数组 Array.Reverse(chr, 0, txtHanZhi.Text.Length); //反转数组 txtPinYin.Text = new StringBuilder().Append(chr).ToString();//显示 }
时间: 2024-10-27 21:14:09