■ TableRowGroup 클래스의 Rows 속성을 사용해 행 속성을 설정하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
using System.Windows.Documents; using System.Windows.Media; 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()); } tableRowGroup.Rows[0].Background = Brushes.CornflowerBlue; tableRowGroup.Rows[1].FontSize = 24; tableRowGroup.Rows[2].ToolTip = "This row's tooltip"; |