• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TableCell类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TableCell的典型用法代码示例。如果您正苦于以下问题:C# TableCell类的具体用法?C# TableCell怎么用?C# TableCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TableCell类属于命名空间,在下文中一共展示了TableCell类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: btnGonder_Click

    protected void btnGonder_Click(object sender, EventArgs e)
    {
        int i;
        pnlPanel.Height = Unit.Percentage(75);
        pnlPanel.Width = Unit.Pixel(200);
        lblAd.BorderStyle = BorderStyle.Dotted;
        lblAd.BackColor = Color.LawnGreen;
        lblAd.BorderColor = Color.FromArgb(255, 255, 0, 0);
        txtAD.ForeColor = ColorTranslator.FromHtml("#00ff00");
        ListItem  Li=new ListItem("nolsun","denemeeee");
        chklCheckDeneme.Items.Add( Li);
        ///*****************************************************
        ///
        tbl.Controls.Clear();
        tbl.BorderStyle = BorderStyle.Double;
        tbl.BorderWidth = Unit.Pixel(1);

        int rows = 3, cols = 4;
        TableCell tc;
        for (int sat = 0; sat < rows; sat++)
        {
            TableRow tr = new TableRow();
            tbl.Controls.Add(tr);

            for (int sut = 0; sut < cols; sut++)
            {
                tc = new TableCell();
                tc.BorderStyle = BorderStyle.Double;
                tc.BorderWidth = Unit.Pixel(1);
                tc.Text = sat.ToString() + "  " + sut.ToString();
                tr.Controls.Add(tc);
            }

        }
    }
开发者ID:madmed,项目名称:netron,代码行数:35,代码来源:Default.aspx.cs


示例2: cmdCreate_Click

 protected void cmdCreate_Click(object sender, EventArgs e)
 {
     ////首先移除所有的行和列,如果EnableViewState设置为False则每次都会重新创建而不需要调用这行代码。
     tbl.Controls.Clear();
     //获取文本框中的行列值
     int rows = Int32.Parse(txtRows.Text);
     int cols = Int32.Parse(txtCols.Text);
     for (int row = 0; row < rows; row++)
     {
         ////创建一个TableRow对象
         TableRow rowNew = new TableRow();
         //将TableRow对象添加到Table对象中
         tbl.Controls.Add(rowNew);
         for (int col = 0; col < cols; col++)
         {
             //创建一个新的TableCell对象
             TableCell cellNew = new TableCell();
             TextBox tb = new TextBox();
             tb.Text = "当前列为 (" + row.ToString() + ","+col.ToString() + ")";
             cellNew.Controls.Add(tb);
             if (chkBorder.Checked)
             {
                 //如果允许列边框复选框被选择,则设置TableCell的边框
                 cellNew.BorderStyle = BorderStyle.Inset;
                 ////注意这里的单位表示方式,是使用Unit结构
                 cellNew.BorderWidth = Unit.Pixel(1);
             }
             ////将TableCell添加到TableRow中
             rowNew.Controls.Add(cellNew);
         }
     }
 }
开发者ID:AJLoveChina,项目名称:workAtQmm,代码行数:32,代码来源:Default.aspx.cs


示例3: Table

    /**
     * Create a new Table of the given number of rows and columns
     *
     * @param numrows the number of rows
     * @param numcols the number of columns
     */
    public Table(int numrows, int numcols) {
        base();

        if(numrows < 1) throw new ArgumentException("The number of rows must be greater than 1");
        if(numcols < 1) throw new ArgumentException("The number of columns must be greater than 1");

        int x=0, y=0, tblWidth=0, tblHeight=0;
        cells = new TableCell[numrows][numcols];
        for (int i = 0; i < cells.Length; i++) {
            x = 0;
            for (int j = 0; j < cells[i].Length; j++) {
                cells[i][j] = new TableCell(this);
                Rectangle anchor = new Rectangle(x, y, TableCell.DEFAULT_WIDTH, TableCell.DEFAULT_HEIGHT);
                cells[i][j].SetAnchor(anchor);
                x += TableCell.DEFAULT_WIDTH;
            }
            y += TableCell.DEFAULT_HEIGHT;
        }
        tblWidth = x;
        tblHeight = y;
        SetAnchor(new Rectangle(0, 0, tblWidth, tblHeight));

        EscherContainerRecord spCont = (EscherContainerRecord) GetSpContainer().GetChild(0);
        EscherOptRecord opt = new EscherOptRecord();
        opt.SetRecordId((short)0xF122);
        opt.AddEscherProperty(new EscherSimpleProperty((short)0x39F, 1));
        EscherArrayProperty p = new EscherArrayProperty((short)0x43A0, false, null);
        p.SetSizeOfElements(0x0004);
        p.SetNumberOfElementsInArray(numrows);
        p.SetNumberOfElementsInMemory(numrows);
        opt.AddEscherProperty(p);
        List<EscherRecord> lst = spCont.GetChildRecords();
        lst.Add(lst.Count-1, opt);
        spCont.SetChildRecords(lst);
    }
开发者ID:hanwangkun,项目名称:npoi,代码行数:41,代码来源:Table.cs


示例4: convertButton_Click

    protected void convertButton_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {

            //Hämtar input från textbox's
            int startTemp = int.Parse(startTempTextBox.Text);
            int endTemp = int.Parse(endTempTextBox.Text);
            int levelTemp = int.Parse(levelTempTextBox.Text);

                //Hämtar inputs från textboxarna och lägger dom yttligare i en variabel
                var startTempRun = (int.Parse(startTempTextBox.Text));
                var endTempRun = (int.Parse(endTempTextBox.Text));
                var levelTempRun = (int.Parse(levelTempTextBox.Text));
                //Do-while som repeterar förfarande tills startTempRun är = endTempRun
                do
                {
                    TableRow tRow = new TableRow();

                    TableCell cell1 = new TableCell();
                    cell1.Text = startTempRun.ToString();
                    TableCell cell2 = new TableCell();

                    cell2.Text = RadioButton1.Checked ?
                        TempatureConverter.FahrenheitToCelcius(start).ToString() : TempatureConverter.CelciusToFahrenheit(start).ToString();

                    tRow.Cells.Add(cell1);
                    tRow.Cells.Add(cell2);
                    TablePresent.Rows.Add(tRow);

                    startTempRun += endTempRun;
                } while (startTempRun <= endTempRun);

            }
    }
开发者ID:devharis,项目名称:The-Forum,代码行数:35,代码来源:Default.aspx.cs


示例5: DrawPages

    public void DrawPages()
    {
        PagesRow.Controls.Clear();

        int start = 0;
        if (Pages <= 1)
            return;

        while (start < Pages)
        {
            TableCell cell = new TableCell();
            LinkButton link = new LinkButton();
            link.ID = "Link" + start.ToString();
            link.Text = (start + 1).ToString();
            link.Click += new EventHandler(link_Click);

            if (start == CurrentPage)
            {
                link.BorderStyle = BorderStyle.Solid;
                link.BorderColor = Color.Red;
                link.BorderWidth = Unit.Pixel(1);
            }
            cell.Controls.Add(link);

            PagesRow.Controls.Add(cell);
            start++;
        }
    }
开发者ID:jbvios,项目名称:mtbscout,代码行数:28,代码来源:PageCounter.ascx.cs


示例6: VisitPrint

        public VisitPrint(Visit visit)
        {
            InitializeComponent();

            TableCell r1 = new TableCell(new Paragraph(new Run(visit.Patient.AccountantCode)));
            header.Rows[0].Cells.Add(r1);

            TableCell r2 = new TableCell(new Paragraph(new Run(visit.Patient.ToString())));
            header.Rows[0].Cells.Add(r2);

            TableCell r3 = new TableCell(new Paragraph(new Run(visit.Doctor.ToString())));
            header.Rows[0].Cells.Add(r3);

            TableCell r4 = new TableCell(new Paragraph(new Run(new PersianDate(visit.FromTime).ToString())));
            header.Rows[0].Cells.Add(r4);

            foreach (VisitService s in visit.VisitServices)
            {

                TableRow r = new TableRow();
                TableCell c1 = new TableCell(new Paragraph(new Run(s.Service.Title)));
                r.Cells.Add(c1);
                TableCell c2 = new TableCell(new Paragraph(new Run(new PatientHistory(s).Insurance)));
                r.Cells.Add(c2);
                TableCell c3 = new TableCell(new Paragraph(new Run(s.ToothDescription)));
                r.Cells.Add(c3);
                TableCell c4 = new TableCell(new Paragraph(new Run(s.FinalCost.ToString("n0"))));
                r.Cells.Add(c4);

                tblServices.Rows.Add(r);
            }

            comment.Inlines.Add(new Run(visit.Comment));
            Fee.Inlines.Add(new Run("  "+visit.FinalSumCost.ToString("n0")+" ریال"));
        }
开发者ID:Ashna,项目名称:Shayan-Dental,代码行数:35,代码来源:VisitPrint.xaml.cs


示例7: LoadGianHang

 private void LoadGianHang()
 {
     CuaHang ch = new CuaHang();
     DataSet ds = ch.SelectCuaHangAtViTriCuaHang(1);
     int n = ds.Tables[0].Rows.Count;
     for (int j = 0; j < 4; j++)
     {
         TableRow tr = new TableRow();
         for (int i = 0; i < 4; i++)
         {
             TableCell td = new TableCell();
             string content = "";
             if (j*4 + i < n)
             {
                 content += "<table width=\"100%\" border=\"0\" cellspacing=\"4\" cellpadding=\"0\">";
                 content += "<tr><td><a href=\"estore.aspx?sid=" + ds.Tables[0].Rows[j*4 + i]["CuaHangID"]
                            + "\"><img src=\"" + ds.Tables[0].Rows[j*4 + i]["Anh"]
                            + "\" width=\"110\" height=\"73\" style=\"border:#ece2a4 1px solid\" /></a></td>";
                 content += "<td><a href=\"estore.aspx?sid=" + ds.Tables[0].Rows[j*4 + i]["CuaHangID"]
                            + "\"><b>" + ds.Tables[0].Rows[j*4 + i]["TenCuaHang"] + "</b></a></td></tr></table>";
             }
             td.Text = content;
             td.HorizontalAlign = HorizontalAlign.Left;
             if (j == 0) td.Width = Unit.Percentage(25);
             tr.Cells.Add(td);
         }
         tblGianHang.Rows.Add(tr);
     }
 }
开发者ID:dsbissett,项目名称:chonet,代码行数:29,代码来源:HaiPhong.aspx.cs


示例8: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["admin"] == null)
            Server.Transfer("admin.aspx");
        else
            admin.Text = "ADMIN " + Session["admin"].ToString();
        DataView dv = (DataView)(SqlDataSourceADDCUST.Select(DataSourceSelectArguments.Empty));
        for (int i = 0; i < dv.Table.Rows.Count; i++)
        {

            TableRow r = new TableRow();
            custtable.Rows.Add(r);
            TableCell c1= new TableCell();
            c1.Text = dv.Table.Rows[i]["custName"].ToString();
            r.Cells.Add(c1);
            TableCell c2 = new TableCell();
            Button b = new Button();
            b.CssClass = "btn btn-danger";
            b.Text = "DELETE";
            b.ID = dv.Table.Rows[i]["custID"].ToString();
            b.Click += B_Click;
            c2.Controls.Add(b);
            r.Cells.Add(c2);
        }
    }
开发者ID:AyushyaChitransh,项目名称:MicromaticGrindingTechnologies,代码行数:25,代码来源:customer.aspx.cs


示例9: Format

        public void Format(Body body, Table table)
        {
            var wordTable = new DocumentFormat.OpenXml.Wordprocessing.Table();
            wordTable.Append(GenerateTableProperties());
            var headerRow = new TableRow();
            foreach (string cell in table.HeaderRow)
            {
                var wordCell = new TableCell();
                wordCell.Append(new Paragraph(new Run(new Text(cell))));
                headerRow.Append(wordCell);
            }
            wordTable.Append(headerRow);

            foreach (ObjectModel.TableRow row in table.DataRows)
            {
                var wordRow = new TableRow();

                foreach (string cell in row)
                {
                    var wordCell = new TableCell();
                    wordCell.Append(new Paragraph(new Run(new Text(cell))));
                    wordRow.Append(wordCell);
                }

                wordTable.Append(wordRow);
            }

            body.Append(wordTable);
        }
开发者ID:Jaykul,项目名称:pickles,代码行数:29,代码来源:WordTableFormatter.cs


示例10: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        string polku = HttpContext.Current.Server.MapPath("~/App_Data/Palautteet.xml");

        palautteet pal = new palautteet();
        pal = (palautteet)XMLDeserialize(polku);

        TableRow r = new TableRow();
        TableCell c = new TableCell();
        TableCell c0 = new TableCell();
        TableCell c1 = new TableCell();
        TableCell c2 = new TableCell();
        TableCell c3 = new TableCell();
        TableCell c4 = new TableCell();
        TableCell c5 = new TableCell();
        c.Text = "Pvm";
        c0.Text = "Nimi";
        c1.Text = "Opittu";
        c2.Text = "Haluan oppia";
        c3.Text = "Hyvää";
        c4.Text = "Parannettavaa";
        c5.Text = "Muuta";
        r.Cells.Add(c);
        r.Cells.Add(c0);
        r.Cells.Add(c1);
        r.Cells.Add(c2);
        r.Cells.Add(c3);
        r.Cells.Add(c4);
        r.Cells.Add(c5);

        tblPalautteet.Rows.Add(r);

        for (int i = 0; i < pal.palaute.Count; i++)
        {
            TableRow row = new TableRow();
            TableCell cell = new TableCell();
            TableCell cell0 = new TableCell();
            TableCell cell1 = new TableCell();
            TableCell cell2 = new TableCell();
            TableCell cell3 = new TableCell();
            TableCell cell4 = new TableCell();
            TableCell cell5 = new TableCell();
            cell.Text = pal.palaute[i].pvm;
            cell0.Text = pal.palaute[i].tekija;
            cell1.Text = pal.palaute[i].opittu;
            cell2.Text = pal.palaute[i].haluanoppia;
            cell3.Text = pal.palaute[i].hyvaa;
            cell4.Text = pal.palaute[i].parannettavaa;
            cell5.Text = pal.palaute[i].muuta;
            row.Cells.Add(cell);
            row.Cells.Add(cell0);
            row.Cells.Add(cell1);
            row.Cells.Add(cell2);
            row.Cells.Add(cell3);
            row.Cells.Add(cell4);
            row.Cells.Add(cell5);

            tblPalautteet.Rows.Add(row);
        }
    }
开发者ID:JuusoVoimala,项目名称:viikkotehtava-1,代码行数:60,代码来源:OpintojaksonPalauteKatselu.aspx.cs


示例11: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request.Params["SerialNum"] != null)
                HyperLinkDetail.NavigateUrl = "../GameServer/ServerOperationHistory.aspx?SerialNum=" + Request.Params["SerialNum"].ToString();

            TableHeaderRow header = new TableHeaderRow();
            TableHeaderCell[] head = new TableHeaderCell[2];
            for (int i = 0; i <= 1; i++) head[i] = new TableHeaderCell();
            head[0].Width = new Unit(10f, UnitType.Percentage);
            head[0].Text = StringDef.Name;
            head[1].Width = new Unit(30f, UnitType.Percentage);
            head[1].Text = StringDef.Message;

            header.Cells.AddRange(head);
            ResultList.Rows.Add(header);

            if (Session["ActionResultList"] == null)
            {
                TableRow row = new TableRow();
                TableCell[] cell = new TableCell[2];
                for (int i = 0; i <= 1; i++) cell[i] = new TableCell(); ;
                cell[0].Text = "";
                cell[1].Text = "Çë²é¿´ÈÕÖ¾";
                row.Cells.AddRange(cell);
                ResultList.Rows.Add(row);
            }
            else
            {
                ShowRunResult(Session["ActionResultList"] as IList);
            }
        }
    }
开发者ID:viticm,项目名称:pap2,代码行数:34,代码来源:CurrentRunResult.aspx.cs


示例12: btn_tabloolustur_Click

    protected void btn_tabloolustur_Click(object sender, EventArgs e)
    {
        int satir = int.Parse(txt_satir.Text);
        int sutun = int.Parse(txt_sutun.Text);
        TableCell td;
        tbl.BorderWidth = Unit.Point(1);
        tbl.BorderStyle = BorderStyle.Dashed;
        for (int i = 1; i <= satir; i++)
        {
            TableRow rw = new TableRow();

            for (int j = 1; j < sutun; j++)
            {
               td = new TableCell();
               td.Text = i.ToString() + " " + j.ToString();
               td.BorderWidth = Unit.Pixel(3);
               if (i % 2 == 0)
                   td.BackColor = Color.Aqua;
               else
                   td.BackColor = Color.Red;
               tbl.Controls.Add(rw);

            }

        }
    }
开发者ID:madmed,项目名称:netron,代码行数:26,代码来源:Default.aspx.cs


示例13: CreateCellFor

 private TableCell CreateCellFor(string data)
 {
     TableCell tableCell=new TableCell();
     tableCell.Blocks.Add(new Paragraph(new Run(data)));
     tableCell.TextAlignment = TextAlignment.Center;
     return tableCell;
 }
开发者ID:Ashna,项目名称:Shayan-Dental,代码行数:7,代码来源:PrinterInsuranceReport.xaml.cs


示例14: Format

	    public void Format(Body body, Scenario background)
		{
			var headerParagraph   = new Paragraph(new ParagraphProperties(new ParagraphStyleId { Val = "Heading2" }));
		    var backgroundKeyword = GetLocalizedBackgroundKeyword();
			headerParagraph.Append(new Run(new RunProperties(new Bold()), new Text(backgroundKeyword)));

			var table = new Table();
			table.Append(GenerateTableProperties());
			var row = new TableRow();
			var cell = new TableCell();
			cell.Append(headerParagraph);

		    foreach (var descriptionSentence in WordDescriptionFormatter.SplitDescription(background.Description))
		    {
		        cell.Append(CreateNormalParagraph(descriptionSentence));
		    }

			foreach (var step in background.Steps)
			{
                cell.Append(WordStepFormatter.GenerateStepParagraph(step));

                if (step.TableArgument != null)
                {
                    cell.Append(this.wordTableFormatter.CreateWordTableFromPicklesTable(step.TableArgument));
                }
			}

			cell.Append(CreateNormalParagraph("")); // Is there a better way to generate a new empty line?
			row.Append(cell);
			table.Append(row);

			body.Append(table);
		}
开发者ID:testpulse,项目名称:pickles,代码行数:33,代码来源:WordBackgroundFormatter.cs


示例15: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        string qry = "SELECT * FROM job-phases ";
        SqlCommand cmd = new SqlCommand(qry, con);
        con.Open();
        SqlDataReader OperationList = cmd.ExecuteReader();

        //create a table with phase name in each row
        while (OperationList.Read())
        {
            TableRow PhaseRow = new TableRow();

            TableCell PhaseCellName = new TableCell();
            PhaseCellName.ID = OperationList[0].ToString();
            PhaseCellName.Text = OperationList[1].ToString();
            PhaseRow.Cells.Add(PhaseCellName);

            TableCell PhaseDuration = new TableCell();
            PhaseDuration.ID = "Duration" + PhaseCellName.ID;
            PhaseDuration.Text = OperationList[3].ToString();
            PhaseRow.Cells.Add(PhaseDuration);

            TableStatus.Rows.Add(PhaseRow);
        }
        con.Close();
    }
开发者ID:AyushyaChitransh,项目名称:MicromaticGrindingTechnologies,代码行数:26,代码来源:ActivityTimeline.aspx.cs


示例16: SpanInfo

 public SpanInfo(TableCell cell, int cellHeight, int rowsSpanned)
 {
     this.cell = cell;
     this.cellHeight = cellHeight;
     this.totalRowHeight = 0;
     this.rowsRemaining = rowsSpanned;
 }
开发者ID:nholik,项目名称:Fo.Net,代码行数:7,代码来源:RowSpanMgr.cs


示例17: AddNewFileTransfer

        public static FileTransferControl AddNewFileTransfer(this FlowDocument doc, Tox tox, FileTransfer transfer)
        {
            var fileTableCell = new TableCell();
            var fileTransferControl = new FileTransferControl(transfer, fileTableCell);

            var usernameParagraph = new Section();
            var newTableRow = new TableRow();
            newTableRow.Tag = transfer;

            var fileTransferContainer = new BlockUIContainer();
            fileTransferControl.HorizontalAlignment = HorizontalAlignment.Stretch;
            fileTransferControl.HorizontalContentAlignment = HorizontalAlignment.Stretch;
            fileTransferContainer.Child = fileTransferControl;

            usernameParagraph.Blocks.Add(fileTransferContainer);
            usernameParagraph.Padding = new Thickness(0);

            fileTableCell.ColumnSpan = 3;
            fileTableCell.Blocks.Add(usernameParagraph);
            newTableRow.Cells.Add(fileTableCell);
            fileTableCell.Padding = new Thickness(0, 10, 0, 10);

            var MessageRows = (TableRowGroup)doc.FindName("MessageRows");
            MessageRows.Rows.Add(newTableRow);

            return fileTransferControl;
        }
开发者ID:WELL-E,项目名称:Toxy-WPF,代码行数:27,代码来源:FlowDocumentExtensions.cs


示例18: CreateTableAlertCondition

	private void CreateTableAlertCondition()
	{
		IList alertConditions = TheAdminServer.GameServerMonitor.AlertConditions;

		for (int i = 0; i < alertConditions.Count; i++)
		{
			AlertCondition condition = alertConditions[i] as AlertCondition;
			
			TableRow row = new TableRow();
			TableCell cell = new TableCell();
			LinkButton linkButtonRemove = new LinkButton();
            linkButtonRemove.Attributes.Add(WebConfig.ParamIndex, i.ToString());
			linkButtonRemove.SkinID = "PlainText";
			//linkButtonRemove.NavigateUrl = "AlertConfig.aspx?" + WebConfig.ParamOperation + "=" + OperationRemoveAlertCondition + "&" + WebConfig.ParamIndex + "=" + i;
            linkButtonRemove.Click += LinkButtonRemove_Click;
			linkButtonRemove.Text = StringDef.Remove;
            linkButtonRemove.ID = "LinkButtonRemove"+i.ToString();
			cell.Controls.Add(linkButtonRemove);
			row.Cells.Add(cell);
			cell = new TableCell();
			cell.Text = (i + 1).ToString();
			row.Cells.Add(cell);
			cell = new TableCell();
			cell.Text = condition.ToString();
			row.Cells.Add(cell);

			TableAlertCondition.Rows.Add(row);
		}
	}
开发者ID:viticm,项目名称:pap2,代码行数:29,代码来源:AlertConfig.aspx.cs


示例19: LoadDanhMuc

    private void LoadDanhMuc()
    {
        try
        {
            NhomSanPham nsp = new NhomSanPham();
            DataSet ds = nsp.SelectNhomSanPhamByNhomChaID(0);
            ds.Tables[0].DefaultView.Sort = "SapXep ASC";

            if (ds.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    TableRow tr = new TableRow();
                    TableCell td = new TableCell();
                    td.Text = "<a href=\"maincategory.aspx?mcid=" + dr["NhomSanPhamID"] + "\">" + dr["TenNhomSanPham"] +
                              "</a>";
                    tr.Cells.Add(td);
                    tblDanhMuc.Rows.Add(tr);
                }
            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }
开发者ID:dsbissett,项目名称:chonet,代码行数:26,代码来源:HaiPhong.aspx.cs


示例20: SetTableHeader

    private void SetTableHeader()
    {
        var tableRow = new TableRow();

        if (ServerModel.User.Current.Islector())
        {
            var inputCell = new TableCell { Text = "Input" };

            var expectedOutputCell = new TableCell { Text = "Expected Output" };

            tableRow.Cells.AddRange(new[] { inputCell, expectedOutputCell });
        }

        var userOutputCell = new TableCell { Text = "User Output" };

        var timeUsedCell = new TableCell { Text = "Time Used" };

        var memoryUsedCell = new TableCell { Text = "Memory Used" };

        var statusCell = new TableCell { Text = "Status" };


        tableRow.Cells.AddRange(new[] { userOutputCell, timeUsedCell, memoryUsedCell, statusCell });

        _compiledAnswerTable.Rows.Add(tableRow);
    }
开发者ID:supermuk,项目名称:iudico,代码行数:26,代码来源:CompiledQuestionResult.ascx.cs



注:本文中的TableCell类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TableExpression类代码示例发布时间:2022-05-24
下一篇:
C# TableBatchOperation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap