Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

bool NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::StartTable ( XmlTextWriter  xtw,
string  id,
int  width,
string[]  columnNames 
) [inline, private]

Write the starting tags for a table to the specified writer.

Parameters:
xtw 
id The table id to put in the html.
width The width (pixels) of the table.
columnNames An array of column names to use in the header row. This also sets the number of columns.
Returns:
bool - true

Definition at line 862 of file LinearHtmlDocumenter.cs.

            {
                  xtw.WriteStartElement("TABLE");
                  xtw.WriteAttributeString("class", "dtTable");
                  xtw.WriteAttributeString("id", id);
                  xtw.WriteAttributeString("cellSpacing", "1");
                  xtw.WriteAttributeString("cellPadding", "1");
                  xtw.WriteAttributeString("width", String.Format("{0}", width));
                  xtw.WriteAttributeString("border", "1");
                  xtw.WriteStartElement("TR");
                  foreach(string colName in columnNames)
                  {
                        xtw.WriteStartElement("TH");
                        xtw.WriteAttributeString("style", "background:#FFFFCA");
                        xtw.WriteString(colName);
                        xtw.WriteEndElement();
                  }
                  xtw.WriteEndElement(); // TR
                  return(true);
            }


Generated by  Doxygen 1.6.0   Back to index