'Declaration
Public Overloads Function DrawTextBox( _ ByVal FontResName As String, _ ByVal Left As Single, _ ByVal Top As Single, _ ByVal Right As Single, _ ByVal Bottom As Single, _ ByVal HorizontalAlignment As TextAlignment, _ ByVal VerticalAlignment As TextAlignment, _ ByVal Text As String _ ) As GdPictureStatus
public GdPictureStatus DrawTextBox( string FontResName, float Left, float Top, float Right, float Bottom, TextAlignment HorizontalAlignment, TextAlignment VerticalAlignment, string Text )
public function DrawTextBox( FontResName: String; Left: Single; Top: Single; Right: Single; Bottom: Single; HorizontalAlignment: TextAlignment; VerticalAlignment: TextAlignment; Text: String ): GdPictureStatus;
public function DrawTextBox( FontResName : String, Left : float, Top : float, Right : float, Bottom : float, HorizontalAlignment : TextAlignment, VerticalAlignment : TextAlignment, Text : String ) : GdPictureStatus;
public: GdPictureStatus DrawTextBox( string* FontResName, float Left, float Top, float Right, float Bottom, TextAlignment HorizontalAlignment, TextAlignment VerticalAlignment, string* Text )
public: GdPictureStatus DrawTextBox( String^ FontResName, float Left, float Top, float Right, float Bottom, TextAlignment HorizontalAlignment, TextAlignment VerticalAlignment, String^ Text )
Parameters
- FontResName
- The resource name of the font you prefer for drawing your text.
You can easily obtain this name using the GdPicturePDF.AddStandardFont method or any of the AddTrueTypeFont...() methods. For further assistance, please see the section Fonts of the GdPicturePDF class in the Reference Guide.
- Left
- The horizontal (X) coordinate of the closest point to the currently defined origin, where the text box is located, in the current units used in the PDF document, related to the currently selected page.
- Top
- The vertical (Y) coordinate of the closest point to the currently defined origin, where the text box is located, in the current units used in the PDF document, related to the currently selected page.
- Right
- The horizontal (X) coordinate of the furthest point to the currently defined origin, where the text box is located, in the current units used in the PDF document, related to the currently selected page.
- Bottom
- The vertical (Y) coordinate of the furthest point to the currently defined origin, where the text box is located, in the current units used in the PDF document, related to the currently selected page.
- HorizontalAlignment
- The required horizontal text alignment mode, that is used to draw text within the specified text box.
- VerticalAlignment
- The required vertical text alignment mode, that is used to draw text within the specified text box.
- Text
- The required text to draw. It can be multiline text as well.
Return Value
We strongly recommend always checking this status first.