Table of Contents

Class ChapterAutoNumber

Namespace
iTextSharp.text
Assembly
iTextSharp.LGPLv2.Core.dll

Chapter with auto numbering. @author Michael Niedermair

public class ChapterAutoNumber : Chapter, IList<IElement>, ICollection<IElement>, IList, ICollection, IReadOnlyList<IElement>, IReadOnlyCollection<IElement>, IEnumerable<IElement>, IEnumerable, ITextElementArray, ILargeElement, IElement
Inheritance
ChapterAutoNumber
Implements
Inherited Members
Extension Methods

Constructors

ChapterAutoNumber(string)

Create a new objet.

public ChapterAutoNumber(string title)

Parameters

title string

the Chapter title (as a String )

ChapterAutoNumber(Paragraph)

Create a new object.

public ChapterAutoNumber(Paragraph para)

Parameters

para Paragraph

the Chapter title (as a Paragraph )

Fields

NumberSet

Is the chapter number already set? @since 2.1.4

protected bool NumberSet

Field Value

bool

Methods

AddSection(string)

Create a new section for this chapter and ad it.

public override Section AddSection(string title)

Parameters

title string

the Section title (as a String )

Returns

Section

Returns the new section.

AddSection(Paragraph)

Create a new section for this chapter and add it.

public override Section AddSection(Paragraph title)

Parameters

title Paragraph

the Section title (as a Paragraph )

Returns

Section

Returns the new section.

SetAutomaticNumber(int)

Changes the Chapter number. @since 2.1.4

public int SetAutomaticNumber(int number)

Parameters

number int

chapter number

Returns

int