C# Класс 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.
Наследование: System.Collections.ArrayList, ITextElementArray
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Section ( ) : System

Constructs a new Section.

Section ( Paragraph title, int numberDepth ) : System

Constructs a new Section.

Приватные методы

Метод Описание
SetNumbers ( int number, ArrayList numbers ) : void

Sets the number of this section.

Описание методов

Add() публичный метод

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
Результат bool

Add() публичный метод

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
Результат void

AddAll() публичный метод

Adds a collection of Elements to this Section.
public AddAll ( ICollection collection ) : bool
collection ICollection a collection of Paragraphs, Lists and/or Tables
Результат bool

AddMarkedSection() публичный метод

public AddMarkedSection ( ) : MarkedSection
Результат MarkedSection

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

Creates a Section, adds it to this Section and returns it.
public AddSection ( Paragraph title ) : Section
title Paragraph the title of the new section
Результат Section

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

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
Результат Section

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

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
Результат Section

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

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

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
Результат Section

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

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
Результат Section

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

Adds a Section to this Section and returns it.
public AddSection ( string title ) : Section
title string the title of the new section
Результат Section

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

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
Результат Section

ConstructTitle() публичный статический метод

public static ConstructTitle ( Paragraph title, ArrayList numbers, int numberDepth, int numberStyle ) : Paragraph
title Paragraph
numbers System.Collections.ArrayList
numberDepth int
numberStyle int
Результат Paragraph

FlushContent() публичный метод

public FlushContent ( ) : void
Результат void

GetBookmarkTitle() публичный метод

public GetBookmarkTitle ( ) : Paragraph
Результат Paragraph

IsChapter() публичный метод

Checks if this object is a Chapter.
public IsChapter ( ) : bool
Результат bool

IsContent() публичный метод

public IsContent ( ) : bool
Результат bool

IsNestable() публичный метод

public IsNestable ( ) : bool
Результат bool

IsSection() публичный метод

Checks if this object is a Section.
public IsSection ( ) : bool
Результат bool

IsTag() публичный статический метод

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
Результат bool

IsTitle() публичный статический метод

Checks if a given tag corresponds with a title tag for this object.
public static IsTitle ( string tag ) : bool
tag string the given tag
Результат bool

NewPage() публичный метод

public NewPage ( ) : void
Результат void

Process() публичный метод

Processes the element by adding it (or the different parts) to an IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener the IElementListener
Результат bool

Section() защищенный метод

Constructs a new Section.
protected Section ( ) : System
Результат System

Section() защищенный метод

Constructs a new Section.
protected Section ( Paragraph title, int numberDepth ) : System
title Paragraph a Paragraph
numberDepth int the numberDepth
Результат System

Set() публичный метод

Alters the attributes of this Section.
public Set ( Properties attributes ) : void
attributes System.util.Properties the attributes
Результат void

SetChapterNumber() публичный метод

public SetChapterNumber ( int number ) : void
number int
Результат void

ToString() публичный метод

public ToString ( ) : string
Результат string

Описание свойств

addedCompletely защищенное свойство

protected bool addedCompletely
Результат bool

bookmarkOpen защищенное свойство

false if the bookmark children are not visible
protected bool bookmarkOpen
Результат bool

bookmarkTitle защищенное свойство

protected string bookmarkTitle
Результат string

complete защищенное свойство

protected bool complete
Результат bool

indentation защищенное свойство

The additional indentation of the content of this section.
protected float indentation
Результат float

indentationLeft защищенное свойство

The indentation of this section on the left side.
protected float indentationLeft
Результат float

indentationRight защищенное свойство

The indentation of this section on the right side.
protected float indentationRight
Результат float

notAddedYet защищенное свойство

protected bool notAddedYet
Результат bool

numberDepth защищенное свойство

This is the number of sectionnumbers that has to be shown before the section title.
protected int numberDepth
Результат int

numberStyle защищенное свойство

protected int numberStyle
Результат int

numbers защищенное свойство

This is the complete list of sectionnumbers of this section and the parents of this section.
protected ArrayList,System.Collections numbers
Результат System.Collections.ArrayList

subsections защищенное свойство

This is the number of subsections.
protected int subsections
Результат int

title защищенное свойство

This is the title of this section.
protected Paragraph,iTextSharp.text title
Результат Paragraph

triggerNewPage защищенное свойство

protected bool triggerNewPage
Результат bool