public TablePropertyRow( AcHtmlTable InTable, string InPromptText, string InPropertyValue) { mTable = InTable; PropertyTableAttributes pta = mTable.PropertyAttributes; mRow = mTable.AddNewRow( ); // add the prompt text cell. mPromptCell = mRow.AddNewCell( ); // fill the prompt text cell. if (pta.PromptColumn.WidthPct > 0) { mPromptCell.AddAttribute("width", pta.PromptColumn.WidthPctString); } mPromptCell.SetInnerText(InPromptText); // add the property value cell. mValueCell = mRow.AddNewCell( ); // fill the property value cell. if (pta.ValueColumn.WidthPct > 0) { mValueCell.AddAttribute("width", pta.ValueColumn.WidthPctString); } mValueCell.SetInnerText(InPropertyValue); }
public AcHtmlTableCell AddNewCell( ) { AcHtmlTableCell cell = new AcHtmlTableCell( ); Cells.Add(cell); return(cell); }
// ------------------- AddNewBlankCell ------------------------------ // add blank cell without any attributes. public AcHtmlTableRow AddNewBlankCell( ) { AcHtmlTableCell cell = new AcHtmlTableCell( ); Cells.Add(cell); return(this); }
// ----------------------- FindTableCellControl --------------------------- public AcHtmlTableCell FindTableCellControl(string InFindId) { AcHtmlTableCell control = (AcHtmlTableCell)FindControl(InFindId); return(control); }
public AcHtmlTableCell AddNewCell(string InText) { AcHtmlTableCell cell = new AcHtmlTableCell( ); cell.InnerText = InText; Cells.Add(cell); return(cell); }
public AcHtmlTableCell AddCell(AcHtmlTableCell InCell) { Cells.Add(InCell); return(InCell); }