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

SetNumbers() приватный Метод

Sets the number of this section.
private SetNumbers ( int number, ArrayList numbers ) : void
number int the number of this section
numbers System.Collections.ArrayList an ArrayList, containing the numbers of the Parent
Результат void
        private void SetNumbers(int number, ArrayList numbers) {
            this.numbers = new ArrayList();
            this.numbers.Add(number);
            this.numbers.AddRange(numbers);
        }
    

Usage Example

Пример #1
0
 /// <summary>
 /// Adds a Paragraph, List, Table or another Section
 /// to this Section.
 /// </summary>
 /// <param name="o">an object of type Paragraph, List, Table or another Section</param>
 /// <returns>a bool</returns>
 public new bool Add(Object o)
 {
     try {
         IElement element = (IElement) o;
         if (element.Type == Element.PARAGRAPH ||
             element.Type == Element.LIST ||
             element.Type == Element.CHUNK ||
             element.Type == Element.PHRASE ||
             element.Type == Element.ANCHOR ||
             element.Type == Element.ANNOTATION ||
             element.Type == Element.TABLE ||
             element.Type == Element.IMGTEMPLATE ||
             element.Type == Element.PTABLE ||
             element.Type == Element.JPEG ||
             element.Type == Element.PHRASE ||
             element.Type == Element.GRAPHIC ||
             element.Type == Element.ANCHOR ||
             element.Type == Element.IMGRAW) {
             base.Add(o);
             return true;
         }
         else if (element.Type == Element.SECTION) {
             Section section = (Section) o;
             section.SetNumbers(++subsections, numbers);
             base.Add(section);
             return true;
         }
         else {
             throw new Exception(element.Type.ToString());
         }
     }
     catch (Exception cce) {
         throw new Exception("Insertion of illegal Element: " + cce.Message);
     }
 }
All Usage Examples Of iTextSharp.text.Section::SetNumbers