TableRow 생성자

정의

TableRow 클래스의 새 인스턴스를 초기화합니다.

public:
 TableRow();
public TableRow ();
Public Sub New ()

예제

다음 코드 예제에는의 새 인스턴스를 만드는 방법을 보여 줍니다는 TableRow 프로그래밍 방식으로 클래스입니다.

이 코드 예제는에 대해 제공 된 큰 예제의 일부는 TableRow 클래스입니다.

// Create more rows for the table.
for (int rowNum = 2; rowNum < 10; rowNum++)
{
    TableRow tempRow = new TableRow();
    for (int cellNum = 0; cellNum < 3; cellNum++)
    {
        TableCell tempCell = new TableCell();
        tempCell.Text = 
            String.Format("({0},{1})", rowNum, cellNum);
        tempRow.Cells.Add(tempCell);
    }
    Table1.Rows.Add(tempRow);
}
' Create more rows for the table.
Dim rowNum As Integer
For rowNum = 2 To 9
    Dim tempRow As New TableRow()
    Dim cellNum As Integer
    For cellNum = 0 To 2
        Dim tempCell As New TableCell()
        tempCell.Text = _
            String.Format("({0},{1})", rowNum, cellNum)
        tempRow.Cells.Add(tempCell)
    Next
    Table1.Rows.Add(tempRow)
Next

설명

이 생성자를 사용 하 여 만들고의 새 인스턴스를 초기화 하는 TableRow 클래스입니다.

적용 대상

추가 정보