C# Class iTextSharp.text.Section

A Section is a part of a Document containing other Sections, Paragraphs, List and/or Tables.
You can not construct a Section yourself. You will have to ask an instance of Section to the Chapter or Section to which you want to add the new Section.
Inheritance: System.Collections.ArrayList, ITextElementArray
Afficher le fichier Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Protected Properties

Свойство Type Description
addedCompletely bool
bookmarkOpen bool
bookmarkTitle string
complete bool
indentation float
indentationLeft float
indentationRight float
notAddedYet bool
numberDepth int
numberStyle int
numbers System.Collections.ArrayList
subsections int
title Paragraph
triggerNewPage bool

Méthodes publiques

Méthode Description
Add ( Object o ) : bool

Adds a Paragraph, List, Table or another Section to this Section.

Add ( int index, Object o ) : void

Adds a Paragraph, List or Table to this Section.

AddAll ( ICollection collection ) : bool

Adds a collection of Elements to this Section.

AddMarkedSection ( ) : MarkedSection
AddSection ( Paragraph title ) : Section

Creates a Section, adds it to this Section and returns it.

AddSection ( Paragraph title, int numberDepth ) : Section

Creates a Section, add it to this Section and returns it.

AddSection ( float indentation, Paragraph title ) : Section

Creates a Section, adds it to this Section and returns it.

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

Creates a Section, adds it to this Section and returns it.

AddSection ( float indentation, string title ) : Section

Adds a Section to this Section and returns it.

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

Adds a Section to this Section and returns it.

AddSection ( string title ) : Section

Adds a Section to this Section and returns it.

AddSection ( string title, int numberDepth ) : Section

Adds a Section to this Section and returns it.

ConstructTitle ( Paragraph title, ArrayList numbers, int numberDepth, int numberStyle ) : Paragraph
FlushContent ( ) : void
GetBookmarkTitle ( ) : Paragraph
IsChapter ( ) : bool

Checks if this object is a Chapter.

IsContent ( ) : bool
IsNestable ( ) : bool
IsSection ( ) : bool

Checks if this object is a Section.

IsTag ( string tag ) : bool

Checks if a given tag corresponds with this object.

IsTitle ( string tag ) : bool

Checks if a given tag corresponds with a title tag for this object.

NewPage ( ) : void
Process ( IElementListener listener ) : bool

Processes the element by adding it (or the different parts) to an IElementListener.

Set ( Properties attributes ) : void

Alters the attributes of this Section.

SetChapterNumber ( int number ) : void
ToString ( ) : string

Méthodes protégées

Méthode Description
Section ( ) : System

Constructs a new Section.

Section ( Paragraph title, int numberDepth ) : System

Constructs a new Section.

Private Methods

Méthode Description
SetNumbers ( int number, ArrayList numbers ) : void

Sets the number of this section.

Method Details

Add() public méthode

Adds a Paragraph, List, Table or another Section to this Section.
public Add ( Object o ) : bool
o Object an object of type Paragraph, List, Table or another Section
Résultat bool

Add() public méthode

Adds a Paragraph, List or Table to this Section.
public Add ( int index, Object o ) : void
index int index at which the specified element is to be inserted
o Object an object of type Paragraph, List or Table
Résultat void

AddAll() public méthode

Adds a collection of Elements to this Section.
public AddAll ( ICollection collection ) : bool
collection ICollection a collection of Paragraphs, Lists and/or Tables
Résultat bool

AddMarkedSection() public méthode

public AddMarkedSection ( ) : MarkedSection
Résultat MarkedSection

AddSection() public méthode

Creates a Section, adds it to this Section and returns it.
public AddSection ( Paragraph title ) : Section
title Paragraph the title of the new section
Résultat Section

AddSection() public méthode

Creates a Section, add it to this Section and returns it.
public AddSection ( Paragraph title, int numberDepth ) : Section
title Paragraph the title of the new section
numberDepth int the numberDepth of the section
Résultat Section

AddSection() public méthode

Creates a Section, adds it to this Section and returns it.
public AddSection ( float indentation, Paragraph title ) : Section
indentation float the indentation of the new section
title Paragraph the title of the new section
Résultat Section

AddSection() public méthode

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
Résultat Section

AddSection() public méthode

Adds a Section to this Section and returns it.
public AddSection ( float indentation, string title ) : Section
indentation float the indentation of the new section
title string the title of the new section
Résultat Section

AddSection() public méthode

Adds a Section to this Section and returns it.
public AddSection ( float indentation, string title, int numberDepth ) : Section
indentation float the indentation of the new section
title string the title of the new section
numberDepth int the numberDepth of the section
Résultat Section

AddSection() public méthode

Adds a Section to this Section and returns it.
public AddSection ( string title ) : Section
title string the title of the new section
Résultat Section

AddSection() public méthode

Adds a Section to this Section and returns it.
public AddSection ( string title, int numberDepth ) : Section
title string the title of the new section
numberDepth int the numberDepth of the section
Résultat Section

ConstructTitle() public static méthode

public static ConstructTitle ( Paragraph title, ArrayList numbers, int numberDepth, int numberStyle ) : Paragraph
title Paragraph
numbers System.Collections.ArrayList
numberDepth int
numberStyle int
Résultat Paragraph

FlushContent() public méthode

public FlushContent ( ) : void
Résultat void

GetBookmarkTitle() public méthode

public GetBookmarkTitle ( ) : Paragraph
Résultat Paragraph

IsChapter() public méthode

Checks if this object is a Chapter.
public IsChapter ( ) : bool
Résultat bool

IsContent() public méthode

public IsContent ( ) : bool
Résultat bool

IsNestable() public méthode

public IsNestable ( ) : bool
Résultat bool

IsSection() public méthode

Checks if this object is a Section.
public IsSection ( ) : bool
Résultat bool

IsTag() public static méthode

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
Résultat bool

IsTitle() public static méthode

Checks if a given tag corresponds with a title tag for this object.
public static IsTitle ( string tag ) : bool
tag string the given tag
Résultat bool

NewPage() public méthode

public NewPage ( ) : void
Résultat void

Process() public méthode

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener the IElementListener
Résultat bool

Section() protected méthode

Constructs a new Section.
protected Section ( ) : System
Résultat System

Section() protected méthode

Constructs a new Section.
protected Section ( Paragraph title, int numberDepth ) : System
title Paragraph a Paragraph
numberDepth int the numberDepth
Résultat System

Set() public méthode

Alters the attributes of this Section.
public Set ( Properties attributes ) : void
attributes System.util.Properties the attributes
Résultat void

SetChapterNumber() public méthode

public SetChapterNumber ( int number ) : void
number int
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

addedCompletely protected_oe property

protected bool addedCompletely
Résultat bool

bookmarkOpen protected_oe property

false if the bookmark children are not visible
protected bool bookmarkOpen
Résultat bool

bookmarkTitle protected_oe property

protected string bookmarkTitle
Résultat string

complete protected_oe property

protected bool complete
Résultat bool

indentation protected_oe property

The additional indentation of the content of this section.
protected float indentation
Résultat float

indentationLeft protected_oe property

The indentation of this section on the left side.
protected float indentationLeft
Résultat float

indentationRight protected_oe property

The indentation of this section on the right side.
protected float indentationRight
Résultat float

notAddedYet protected_oe property

protected bool notAddedYet
Résultat bool

numberDepth protected_oe property

This is the number of sectionnumbers that has to be shown before the section title.
protected int numberDepth
Résultat int

numberStyle protected_oe property

protected int numberStyle
Résultat int

numbers protected_oe property

This is the complete list of sectionnumbers of this section and the parents of this section.
protected ArrayList,System.Collections numbers
Résultat System.Collections.ArrayList

subsections protected_oe property

This is the number of subsections.
protected int subsections
Résultat int

title protected_oe property

This is the title of this section.
protected Paragraph,iTextSharp.text title
Résultat Paragraph

triggerNewPage protected_oe property

protected bool triggerNewPage
Résultat bool