C# 클래스 iTextSharp.text.Cell

A Cell is a Rectangle containing other Elements.
A Cell is a Rectangle containing other Elements.

A Cell must be added to a Table. The Table will place the Cell in a Row.

상속: Rectangle, ITextElementArray
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
arrayList System.Collections.ArrayList
colspan int
groupChange bool
header bool
horizontalAlignment int
maxLines int
noWrap bool
percentage bool
rowspan int
useAscender bool
useBorderPadding bool
useDescender bool
verticalAlignment int
width float

공개 메소드들

메소드 설명
Add ( Object o ) : bool

Add an Object to this cell.

AddElement ( IElement element ) : void

Adds an element to this Cell.

You can't add ListItems, Rows, Cells, JPEGs, GIFs or PNGs to a Cell.

Cell ( ) : System

Constructs an empty Cell.

Cell ( IElement element ) : System

Constructs a Cell with a certain Element.

if the element is a ListItem, Row or Cell, an exception will be thrown.

Cell ( bool dummy ) : System

Constructs an empty Cell (for internal use only).

Cell ( string content ) : System

Constructs a Cell with a certain content.

The string will be converted into a Paragraph.

Clear ( ) : void

Clears all the Elements of this Cell.

CreatePdfPCell ( ) : PdfPCell
GetBottom ( int margin ) : float

This method throws an Exception.

GetLeft ( int margin ) : float

This method throws an Exception.

GetRight ( int margin ) : float

This method throws an Exception.

GetTop ( int margin ) : float

This method throws an Exception.

GetWidthAsString ( ) : String
IsEmpty ( ) : bool

Checks if the Cell is empty.

IsTable ( ) : bool

Checks if the Cell is empty.

IsTag ( string tag ) : bool

Checks if a given tag corresponds with this object.

Process ( IElementListener listener ) : bool

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

SetHorizontalAlignment ( string alignment ) : void

Sets the alignment of this cell.

SetVerticalAlignment ( string alignment ) : void

Sets the alignment of this paragraph.

SetWidth ( String value ) : void

비공개 메소드들

메소드 설명
Fill ( ) : void

Makes sure there is at least 1 object in the Cell. Otherwise it might not be shown in the table.

메소드 상세

Add() 공개 메소드

Add an Object to this cell.
public Add ( Object o ) : bool
o Object the object to add
리턴 bool

AddElement() 공개 메소드

Adds an element to this Cell.
You can't add ListItems, Rows, Cells, JPEGs, GIFs or PNGs to a Cell.
public AddElement ( IElement element ) : void
element IElement the Element to add
리턴 void

Cell() 공개 메소드

Constructs an empty Cell.
public Cell ( ) : System
리턴 System

Cell() 공개 메소드

Constructs a Cell with a certain Element.
if the element is a ListItem, Row or Cell, an exception will be thrown.
public Cell ( IElement element ) : System
element IElement the element
리턴 System

Cell() 공개 메소드

Constructs an empty Cell (for internal use only).
public Cell ( bool dummy ) : System
dummy bool a dummy value
리턴 System

Cell() 공개 메소드

Constructs a Cell with a certain content.
The string will be converted into a Paragraph.
public Cell ( string content ) : System
content string a string
리턴 System

Clear() 공개 메소드

Clears all the Elements of this Cell.
public Clear ( ) : void
리턴 void

CreatePdfPCell() 공개 메소드

public CreatePdfPCell ( ) : PdfPCell
리턴 iTextSharp.text.pdf.PdfPCell

GetBottom() 공개 메소드

This method throws an Exception.
public GetBottom ( int margin ) : float
margin int new value
리턴 float

GetLeft() 공개 메소드

This method throws an Exception.
public GetLeft ( int margin ) : float
margin int new value
리턴 float

GetRight() 공개 메소드

This method throws an Exception.
public GetRight ( int margin ) : float
margin int new value
리턴 float

GetTop() 공개 메소드

This method throws an Exception.
public GetTop ( int margin ) : float
margin int new value
리턴 float

GetWidthAsString() 공개 메소드

public GetWidthAsString ( ) : String
리턴 String

IsEmpty() 공개 메소드

Checks if the Cell is empty.
public IsEmpty ( ) : bool
리턴 bool

IsTable() 공개 메소드

Checks if the Cell is empty.
public IsTable ( ) : bool
리턴 bool

IsTag() 공개 정적인 메소드

Checks if a given tag corresponds with this object.
public static IsTag ( string tag ) : bool
tag string the given tag
리턴 bool

Process() 공개 메소드

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

SetHorizontalAlignment() 공개 메소드

Sets the alignment of this cell.
public SetHorizontalAlignment ( string alignment ) : void
alignment string the new alignment as a string
리턴 void

SetVerticalAlignment() 공개 메소드

Sets the alignment of this paragraph.
public SetVerticalAlignment ( string alignment ) : void
alignment string the new alignment as a string
리턴 void

SetWidth() 공개 메소드

public SetWidth ( String value ) : void
value String
리턴 void

프로퍼티 상세

arrayList 보호되어 있는 프로퍼티

This is the ArrayList of Elements.
protected ArrayList,System.Collections arrayList
리턴 System.Collections.ArrayList

colspan 보호되어 있는 프로퍼티

This is the colspan.
protected int colspan
리턴 int

groupChange 보호되어 있는 프로퍼티

Does this Cell force a group change?
protected bool groupChange
리턴 bool

header 보호되어 있는 프로퍼티

Is this Cell a header?
protected bool header
리턴 bool

horizontalAlignment 보호되어 있는 프로퍼티

This is the horizontal Element.
protected int horizontalAlignment
리턴 int

maxLines 보호되어 있는 프로퍼티

Maximum number of lines allowed in the cell. The default value of this property is not to limit the maximum number of lines (contributed by [email protected])
protected int maxLines
리턴 int

noWrap 보호되어 있는 프로퍼티

Will the element have to be wrapped?
protected bool noWrap
리턴 bool

percentage 보호되어 있는 프로퍼티

protected bool percentage
리턴 bool

rowspan 보호되어 있는 프로퍼티

This is the rowspan.
protected int rowspan
리턴 int

useAscender 보호되어 있는 프로퍼티

Indicates that the largest ascender height should be used to determine the height of the first line. Note that this only has an effect when rendered to PDF. Setting this to true can help with vertical alignment problems.
protected bool useAscender
리턴 bool

useBorderPadding 보호되어 있는 프로퍼티

Adjusts the cell contents to compensate for border widths. Note that this only has an effect when rendered to PDF.
protected bool useBorderPadding
리턴 bool

useDescender 보호되어 있는 프로퍼티

Indicates that the largest descender height should be added to the height of the last line (so characters like y don't dip into the border). Note that this only has an effect when rendered to PDF.
protected bool useDescender
리턴 bool

verticalAlignment 보호되어 있는 프로퍼티

This is the vertical Element.
protected int verticalAlignment
리턴 int

width 보호되어 있는 프로퍼티

This is the vertical Element.
protected float width
리턴 float