Exemple #1
0
        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);
        }
Exemple #2
0
        public AcHtmlTableCell AddNewCell( )
        {
            AcHtmlTableCell cell = new AcHtmlTableCell( );

            Cells.Add(cell);
            return(cell);
        }
Exemple #3
0
        // ------------------- 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);
        }
Exemple #5
0
        public AcHtmlTableCell AddNewCell(string InText)
        {
            AcHtmlTableCell cell = new AcHtmlTableCell( );

            cell.InnerText = InText;
            Cells.Add(cell);
            return(cell);
        }
Exemple #6
0
 public AcHtmlTableCell AddCell(AcHtmlTableCell InCell)
 {
     Cells.Add(InCell);
     return(InCell);
 }