|
HiraokaHyperTools.iTextSharp-LGPL
0.3.0
|
Public Member Functions | |
| VerticalText (PdfContentByte text) | |
| void | AddText (Phrase phrase) |
| void | AddText (Chunk chunk) |
| void | SetVerticalLayout (float startX, float startY, float height, int maxLines, float leading) |
| int | Go () |
| int | Go (bool simulate) |
| void | SetOrigin (float startX, float startY) |
Static Public Attributes | |
| static int | NO_MORE_TEXT = 1 |
| static int | NO_MORE_COLUMN = 2 |
Protected Member Functions | |
| PdfLine | CreateLine (float width) |
| void | ShortenChunkArray () |
Protected Attributes | |
| ArrayList | chunks = new ArrayList() |
| PdfContentByte | text |
| int | alignment = Element.ALIGN_LEFT |
| int | currentChunkMarker = -1 |
| PdfChunk | currentStandbyChunk |
| string | splittedChunkText |
| float | leading |
| float | startX |
| float | startY |
| int | maxLines |
| float | height |
Properties | |
| float | Leading [get, set] |
| float | OriginX [get] |
| float | OriginY [get] |
| int | MaxLines [get, set] |
| float | Height [get, set] |
| int | Alignment [get, set] |
Writes text vertically. Note that the naming is done according to horizontal text although it referrs to vertical text. A line with the alignment Element.LEFT_ALIGN will actually be top aligned.
| iTextSharp.text.pdf.VerticalText.VerticalText | ( | PdfContentByte | text | ) |
Creates new VerticalText
| text | the place where the text will be written to. Can be a template. |
| void iTextSharp.text.pdf.VerticalText.AddText | ( | Chunk | chunk | ) |
Adds a Chunk to the current text array.
| chunk | the text |
| void iTextSharp.text.pdf.VerticalText.AddText | ( | Phrase | phrase | ) |
Adds a Phrase to the current text array.
| phrase | the text |
|
protected |
Creates a line from the chunk array.
| width | the width of the line |
| int iTextSharp.text.pdf.VerticalText.Go | ( | ) |
Outputs the lines to the document. It is equivalent to go(false).
NO_MORE_TEXT and/or NO_MORE_COLUMN | DocumentException | on error |
| int iTextSharp.text.pdf.VerticalText.Go | ( | bool | simulate | ) |
Outputs the lines to the document. The output can be simulated.
| simulate | true to simulate the writting to the document |
NO_MORE_TEXT and/or NO_MORE_COLUMN | DocumentException | on error |
| void iTextSharp.text.pdf.VerticalText.SetOrigin | ( | float | startX, |
| float | startY | ||
| ) |
Sets the new text origin.
| startX | the X coordinate |
| startY | the Y coordinate |
| void iTextSharp.text.pdf.VerticalText.SetVerticalLayout | ( | float | startX, |
| float | startY, | ||
| float | height, | ||
| int | maxLines, | ||
| float | leading | ||
| ) |
Sets the layout.
| startX | the top right X line position |
| startY | the top right Y line position |
| height | the height of the lines |
| maxLines | the maximum number of lines |
| leading | the separation between the lines |
|
protected |
Normalizes the list of chunks when the line is accepted.
|
protected |
|
protected |
The chunks that form the text.
|
protected |
Marks the chunks to be eliminated when the line is written.
|
protected |
The chunk created by the splitting.
|
protected |
The height of the text.
|
protected |
The leading
|
protected |
The maximum number of vertical lines.
|
static |
Signals that there is no more column.
|
static |
Signals that there are no more text available.
|
protected |
The chunk created by the splitting.
|
protected |
The X coordinate.
|
protected |
The Y coordinate.
|
protected |
The PdfContent where the text will be written to.
|
getset |
Gets the Element.
|
getset |
Gets the height of the line
|
getset |
Gets the separation between the vertical lines.
|
getset |
Gets the maximum number of available lines. This value will change after each call to go().
|
get |
Gets the X coordinate where the next line will be writen. This value will change after each call to go().
|
get |
Gets the Y coordinate where the next line will be writen.