■ TableRowGroup 클래스의 Rows 속성을 사용해 행을 추가하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
using System.Windows.Documents; Table table = new Table(); for(int i = 0; i < 4; i++) { table.RowGroups.Add(new TableRowGroup()); } TableRowGroup tableRowGroup = table.RowGroups[0]; for(int i = 0; i < 10; i++) { tableRowGroup.Rows.Add(new TableRow()); } |