|
PdfSharp-WPF
1.31.7289
|
Represents a very simple text formatter. If this class does not satisfy your needs on formatting paragraphs I recommend to take a look at MigraDoc Foundation. Alternatively you should copy this class in your own source code and modify it. More...
Public Member Functions | |
| XTextFormatter (XGraphics gfx) | |
| Initializes a new instance of the XTextFormatter class. More... | |
| void | DrawString (string text, XFont font, XBrush brush, XRect layoutRectangle) |
| Draws the text. More... | |
| void | DrawString (string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format) |
| Draws the text. More... | |
Properties | |
| string | Text [get, set] |
| Gets or sets the text. More... | |
| XFont | Font [get, set] |
| Gets or sets the font. More... | |
| XRect | LayoutRectangle [get, set] |
| Gets or sets the bounding box of the layout. More... | |
| XParagraphAlignment | Alignment [get, set] |
| Gets or sets the alignment of the text. More... | |
Represents a very simple text formatter. If this class does not satisfy your needs on formatting paragraphs I recommend to take a look at MigraDoc Foundation. Alternatively you should copy this class in your own source code and modify it.
| PdfSharp.Drawing.Layout.XTextFormatter.XTextFormatter | ( | XGraphics | gfx | ) |
Initializes a new instance of the XTextFormatter class.
| void PdfSharp.Drawing.Layout.XTextFormatter.DrawString | ( | string | text, |
| XFont | font, | ||
| XBrush | brush, | ||
| XRect | layoutRectangle | ||
| ) |
Draws the text.
| text | The text to be drawn. |
| font | The font. |
| brush | The text brush. |
| layoutRectangle | The layout rectangle. |
| void PdfSharp.Drawing.Layout.XTextFormatter.DrawString | ( | string | text, |
| XFont | font, | ||
| XBrush | brush, | ||
| XRect | layoutRectangle, | ||
| XStringFormat | format | ||
| ) |
Draws the text.
| text | The text to be drawn. |
| font | The font. |
| brush | The text brush. |
| layoutRectangle | The layout rectangle. |
| format | The format. Must be XStringFormat.TopLeft |
|
getset |
Gets or sets the alignment of the text.
|
getset |
Gets or sets the font.
|
getset |
Gets or sets the bounding box of the layout.
|
getset |
Gets or sets the text.
The text.