'Declaration
Public Overloads Function SetSignatureText( _ ByVal Text As String, _ ByVal FontResName As String, _ ByVal FontSize As Single, _ ByVal Cyan As Byte, _ ByVal Magenta As Byte, _ ByVal Yellow As Byte, _ ByVal Black As Byte, _ ByVal AlignHorz As TextAlignment, _ ByVal AlignVert As TextAlignment, _ ByVal ShowText As Boolean _ ) As GdPictureStatus
public GdPictureStatus SetSignatureText( string Text, string FontResName, float FontSize, byte Cyan, byte Magenta, byte Yellow, byte Black, TextAlignment AlignHorz, TextAlignment AlignVert, bool ShowText )
public function SetSignatureText( Text: String; FontResName: String; FontSize: Single; Cyan: Byte; Magenta: Byte; Yellow: Byte; Black: Byte; AlignHorz: TextAlignment; AlignVert: TextAlignment; ShowText: Boolean ): GdPictureStatus;
public function SetSignatureText( Text : String, FontResName : String, FontSize : float, Cyan : byte, Magenta : byte, Yellow : byte, Black : byte, AlignHorz : TextAlignment, AlignVert : TextAlignment, ShowText : boolean ) : GdPictureStatus;
public: GdPictureStatus SetSignatureText( string* Text, string* FontResName, float FontSize, byte Cyan, byte Magenta, byte Yellow, byte Black, TextAlignment AlignHorz, TextAlignment AlignVert, bool ShowText )
public: GdPictureStatus SetSignatureText( String^ Text, String^ FontResName, float FontSize, byte Cyan, byte Magenta, byte Yellow, byte Black, TextAlignment AlignHorz, TextAlignment AlignVert, bool ShowText )
Parameters
- Text
- The required text to draw. If you leave this parameter empty and the ShowText parameter is set to true, the drawn text will be built automatically using the additional information previously defined by the GdPicturePDF.SetSignatureInfo method. The text will not be drawn if the signature is invisible.
- FontResName
- The resource name of the font you prefer for drawing the text. If you leave this parameter empty, the predefined standard font is used. For further assistance, please see the Fonts section of the GdPicturePDF class in the Reference Guide.
- FontSize
- A text (font) size, in points. Please note that 1 point = 1/72 inch.
- Cyan
- The amount of cyan color to be used for the resulting text color. Use the value between 0 and 255.
- Magenta
- The amount of magenta color to be used for the resulting text color. Use the value between 0 and 255.
- Yellow
- The amount of yellow color to be used for the resulting text color. Use the value between 0 and 255.
- Black
- The amount of black color to be used for the resulting text color. Use the value between 0 and 255.
- AlignHorz
- The required horizontal alignment of the text within the signature's bounding box.
- AlignVert
- The required vertical alignment of the text within the signature's bounding box.
- ShowText
- Set this parameter to true, if you want to draw the text, otherwise set it to false.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.