RemoveTextBlock – PB Docs 2022

RemoveTextBlock

PowerScript function

Description

Removes a PDFTextBlock object in the current PDFRichText
object.

Applies to

PDFRichText object in Objects and Controls

Syntax

Argument

Description

index

The PDFTextBlock object to be removed from the current
PDFRichText object. The index of the objects are determined by
the orders they are added, starting at 1. If one object is
removed, the indexes of the remaining objects will be
reordered.

name The name of the PDFTextBlock object to be removed. If there
are multiple PDFTextBlock objects with the same name in the
PDFRichText object, only the first one will be removed.

Return value

Long. Returns 1 if it succeeds, or -1 if it fails. For more errors,
see the Error Codes.

Examples

The following example removes the PDFTextBlock object with index =
1:

The following example removes the PDFTextBlock object with name =
“block”:

See also

AddTextBlock

Clone

GetOverflowPageText

GetTextBlock

GetTextBlockCount

GetWrapImage

GetWrapImageCount

IsOverflowPage

RemoveWrapImage

WrapImage


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x