Click or drag to resize
SignDocAnnotationsetPlainText Method
Set the text of a text annotation. This function can be used for annotations of type t_freetext. Any sequence of CR and LF characters in the text starts a new paragraph(ie, text following such a sequence will be placed at the beginning of the next output line).In consequence, empty lines in the input do not produce empty lines in the output.To get an empty line in the output, you have to add a paragraph containing a non - breaking space(0xa0) only:
"Line before empty line\n\u00A0\nLine after empty line"
Complex scripts are supported, see @ref signdocshared_complex_scripts.By default, this function uses paragraph direction LTR.Use setFlags() if you need to set a different paragraph direction.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public void setPlainText(
	string text,
	string font,
	double fontSize,
	HorizontalAlignment horizAlign
)

Parameters

text
Type: SystemString
The text. Allowed control characters are CR and LF. Any sequence of CR and LF characters starts a new paragraph.
font
Type: SystemString
The name of the font to be used. The font substitition rules of the loaded font configuration files will be used. The resulting font must be a standard PDF font or a font for which a file is specified in the font configuration files.
fontSize
Type: SystemDouble
The font size in user space units.
horizAlign
Type: de.softpro.signdocsdk.Enums.EAnnotationHorizontalAlignment
Horizontal alignment of the text
See Also