PDFCanvas.DrawTextBox Method
Overloads
| Name | Description |
|---|---|
| DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double) | Draws a text specified by a string, a pair of coordinates, a width and a height. |
| DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,Double) | Draws a text specified by a string, a pair of coordinates, a width and a height. |
| DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,Double,PDFTextAlign) | Draws a text specified by a string, a pair of coordinates, a width and a height. |
| DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,PDFStringLayoutOptions) | Draws a text specified by a string, a pair of coordinates, a width and a height. |
DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double)
Draws a text specified by a string, a pair of coordinates, a width and a height.
public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height)
Parameters
text String
the string to be drawn.
font PDFFont
a PDFFont object used to represent the string.
pen PDFPen
a PDFPen object used to draw the border of the string.
brush PDFBrush
a PDFBrush object used to fill the interior of the string.
left Double
the x coordinate of the top left corner of the text box.
top Double
the y coordinate of the top left corner of the text box.
width Double
the width of the text box.
height Double
the height of the text box.
Remarks
The text is automatically wrapped to fit the width of the text box.
DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,Double)
Draws a text specified by a string, a pair of coordinates, a width and a height.
public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, double orientation)
Parameters
text String
the string to be drawn.
font PDFFont
a PDFFont object used to represent the string.
pen PDFPen
a PDFPen object used to draw the border of the string.
brush PDFBrush
a PDFBrush object used to fill the interior of the string.
left Double
the x coordinate of the top left corner of the text box.
top Double
the y coordinate of the top left corner of the text box.
width Double
the width of the text box.
height Double
the height of the text box.
orientation Double
the orientation of the text box.
Remarks
The text is automatically wrapped to fit the width of the text box. The text box is rotated around the top left corner with a number of degrees specified by the orientation parameter.
DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,Double,PDFTextAlign)
Draws a text specified by a string, a pair of coordinates, a width and a height.
public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, double orientation, PDFTextAlign align)
Parameters
text String
the string to be drawn.
font PDFFont
a PDFFont object used to represent the string.
pen PDFPen
a PDFPen object used to draw the border of the string.
brush PDFBrush
a PDFBrush object used to fill the interior of the string.
left Double
the x coordinate of the top left corner of the text box.
top Double
the y coordinate of the top left corner of the text box.
width Double
the width of the text box.
height Double
the height of the text box.
orientation Double
the orientation of the text box.
align PDFTextAlign
a PDFTextAlign enumeration member specifying how the text is aligned inside the text box.
Remarks
The text is automatically wrapped to fit the width of the text box. The text box is rotated around the top left corner with a number of degrees specified by the orientation parameter.
DrawTextBox(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,Double,PDFStringLayoutOptions)
Draws a text specified by a string, a pair of coordinates, a width and a height.
public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, PDFStringLayoutOptions textFormatOptions)
Parameters
text String
the string to be drawn.
font PDFFont
a PDFFont object used to represent the string.
pen PDFPen
a PDFPen object used to draw the border of the string.
brush PDFBrush
a PDFBrush object used to fill the interior of the string.
left Double
the x coordinate of the top left corner of the text box.
top Double
the y coordinate of the top left corner of the text box.
width Double
the width of the text box.
height Double
the height of the text box.
textFormatOptions PDFStringLayoutOptions
A PDFStringLayoutOptions object specifying how the text within the text box should be formatted.
Remarks
The text is automatically wrapped to fit the width of the text box. The formatting of the text is controlled by the textFormatOptions parameter.