GetWrapImage
PowerScript function
Description
Gets an image that the current PDFRichText object wraps
around.
Applies to
PDFRichText object in Objects and Controls
Syntax
|
1 |
PDFImage GetWrapImage(long index) |
|
1 |
PDFImage GetWrapImage(string name) |
|
Argument |
Description |
|---|---|
|
index |
The index of the image that the PDFRichText object wraps |
| name | The name of the image that the PDFRichText object wraps around. |
Return value
PDFImage object in Objects and Controls. Returns the PDFImage
object that the current PDFRichText object wraps around if it succeeds, or
returns null if it fails. If the current PDFRichText object wraps around
multiple images with the same name, only return the first one.
Examples
This example gets the image with the specified index in the current
PDFRichText object
|
1 2 |
//Get the PDFImage objecct with index = 1 lpdf_image = lpdf_rtext.getwrapimage(1) |
This example gets the image with the specified name in the current
PDFRichText object
|
1 2 3 4 5 6 |
lpdf_image.name= "image" lpdf_page.AddContent( lpdf_image) lpdf_rtext.wrapimage( lpdf_image) //Get the PDFImage objecct with name= "image" lpdf_image = lpdf_rtext.getwrapimage("image") |
See also