Click or drag to resize

ContentReplacerAddText Method

All text inside 'target_region' will be deleted and replaced with 'replacement_text'.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public void AddText(
	Rect target_region,
	string replacement_text
)

Parameters

target_region
Type: pdftron.PDFRect
The rectangle defining the area in which all text will be replaced by 'replacement_text'.
replacement_text
Type: SystemString
The new text that will replace the existing text in 'target_region'.
Remarks
The 'replacement_text' will be styled in the same font/color/style that is used by the original text. If there are multiple font styles, the most prevalent style will be used. Also, the 'replacement_text' will wrap within the 'target_region', but if it is too long, the overflow text will not be visible, and no surrounding content will be affected.
See Also