怎么获取下面文本框的值Grid grid = new Grid;gridRowDefinitionsAddnew RowDefinition Height = new GridLength70 ;gridRowDefinitionsAddnew RowDefinition Height = GridLengthAuto ;gridRowDefinitionsAddnew RowDefiniti
可以通过以下方式获取每个文本框的值:
string value = ((TextBox)grid.Children
.Cast
其中,row和column分别为文本框所在的行和列。例如,获取第二行第四列的文本框的值,可以使用以下代码:
string value = ((TextBox)grid.Children
.Cast
原文地址: https://www.cveoy.top/t/topic/cZB6 著作权归作者所有。请勿转载和采集!