RemoveTextBlock
PowerScript function
Description
Removes a PDFTextBlock object in the current PDFRichText
object.
Applies to
PDFRichText object in Objects and Controls
Syntax
|
1 |
long RemoveTextBlock(string name) |
|
1 |
long RemoveTextBlock(long index) |
|
Argument |
Description |
|---|---|
|
index |
The PDFTextBlock object to be removed from the current |
| 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:
|
1 2 |
//Remove PDFTextBlock with index = 1 lpdf_rtext.removetextblock(1) |
The following example removes the PDFTextBlock object with name =
“block”:
|
1 2 3 4 5 |
pdf_block.name="block" lpdf_block.content= "name is block" lpdf_rtext.addtextblock(lpdf_block) //Remove PDFTextBlock with name = "block" lpdf_rtext.removetextblock("block") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest