Example #1
0
        public AcHtmlTable AddNewTable( )
        {
            AcHtmlTable table = new AcHtmlTable( );

            Controls.Add(table);
            return(table);
        }
Example #2
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);
        }
        public AcHtmlTable AddNewTableControl( )
        {
            AcHtmlTable tbl = new AcHtmlTable( );

            Controls.Add(tbl);
            return(tbl);
        }