C# 将行添加到@html.Textarea

C# 将行添加到@html.Textarea,c#,asp.net-mvc,C#,Asp.net Mvc,如何将行添加到此帮助器: @Html.TextAreaFor(x => Model.xxx[i].xxx, htmlAttributes: new { @class = "form-control" }) 似乎默认值是2行,我想添加到其中。使用行属性 new { @class = "form-control", rows = "10" } 使用所需的行数更改10使用行属性 new { @class = "form-control", rows = "10" } 用所需的行数

如何将行添加到此帮助器:

 @Html.TextAreaFor(x => Model.xxx[i].xxx,  htmlAttributes:  new { @class = "form-control" })

似乎默认值是2行,我想添加到其中。

使用
属性

new { @class = "form-control", rows = "10" } 

使用所需的行数更改
10

使用
属性

new { @class = "form-control", rows = "10" } 
用所需的行数更改
10