winform设置文本框宽度 根据文字数量和字体返回宽度时间:2023-03-09 07:28:38 _LinkLabel.Width = TextRenderer.MeasureText(_LinkLabel.Text, _LinkLabel.Font).Width;