iTextSharp.text.Section.AddSection C# (CSharp) Метод

AddSection() публичный Метод

Creates a Section, adds it to this Section and returns it.
public AddSection ( float indentation, Paragraph title, int numberDepth ) : Section
indentation float the indentation of the new section
title Paragraph the title of the new section
numberDepth int the numberDepth of the section
Результат Section
        public virtual Section AddSection(float indentation, Paragraph title, int numberDepth) {
            if (AddedCompletely) {
                throw new InvalidOperationException("This LargeElement has already been added to the Document.");
            }
            Section section = new Section(title, numberDepth);
            section.Indentation = indentation;
            Add(section);
            return section;
        }
    

Same methods

Section::AddSection ( Paragraph title ) : Section
Section::AddSection ( Paragraph title, int numberDepth ) : Section
Section::AddSection ( float indentation, Paragraph title ) : Section
Section::AddSection ( float indentation, string title ) : Section
Section::AddSection ( float indentation, string title, int numberDepth ) : Section
Section::AddSection ( string title ) : Section
Section::AddSection ( string title, int numberDepth ) : Section

Usage Example

Пример #1
0
 public static Section GetSection(Section parent, Properties attributes)
 {
     Section section = parent.AddSection("");
     SetSectionParameters(section, attributes);
     return section;
 }