Пример #1
0
        /// <summary>
        /// Creates the visual header for the class.
        /// </summary>
        /// <param name="name">The test class name.</param>
        private void CreateClassHeader(string name)
        {
            Paragraph para = new Paragraph(/* html */ name);
            para.Font.Bold = true;
            para.BackgroundColor = Color.Manila;
            para.Margin.All = 0;
            para.Padding.All = 2;
            para.BorderColor = Color.ManilaBorder;
            para.BorderStyle = BorderStyle.Solid;
            para.BorderWidthAdvanced.All = 1;
            para.BorderWidthAdvanced.Bottom = 2;
            para.SetStyleAttribute(CssAttribute.BorderBottomColor, Color.Tan);

            Controls.Add(para);
        }
Пример #2
0
 /// <summary>
 /// Creates the section that displays that about box / framework title.
 /// </summary>
 private void CreateAbout()
 {
     _about = new Paragraph();
     _about.Font.Size = new FontUnit(16, UnitType.Pixel);
     _about.Margin.All = 0;
     _about.Padding.All = 0;
     Controls.Add(_about);
 }