Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

AddTextBlock – PB Docs 2022 – PowerBuilder Library

AddTextBlock – PB Docs 2022

AddTextBlock

PowerScript function

Description

Adds a text block to the current PDFRichText object.

Applies to

PDFRichText object in Objects and Controls

Syntax

Argument

Description

textBlock

The PDFTextBlock object to be added in the current
PDFRichText object.

text The text to be added in the current PDFRichText object. It
is supported to pass an empty string to this argument.
font The font of the text to be added in the current PDFRichText
object.
color The color of the text to be added in the current
PDFRichText object.
name The name of text to be added in the current PDFRichText
object. It is supported to pass an empty string to this
argument.

Return value

PDFTextBlock object in Objects and Controls. Returns the
PDFTextBlock object created in the PDFRichText object if it succeeds, or
null if it fails.

Usage

PDFTextBlock is a formatted text block, and must be used with the
PDFRichText object, for organizing and managing the content in
PDFRichText. When text is added in to a PDFRichText object,a PDFTextBlock
object is created for the text in the PDFRichText object.

Examples

This example adds a PDFTextBlock object to the lpdf_rtext
(PDFRichText) object using the syntax AddTextBlock(PDFTextBlock
textBlock).

This example directly adds text to the lpdf_rtext (PDFRichText)
object and sets the text font, color, and size using the syntax
PDFTextBlock AddTextBlock(string text, PDFFont font, PDFColor
textColor).

This example adds text to the lpdf_rtext (PDFRichText) object and
sets the text name, font, color, and size using the syntax PDFTextBlock
AddTextBlock(string name, string text, PDFFont font, PDFColor
textColor).

See also

Clone

GetOverflowPageText

GetTextBlock

GetTextBlockCount

GetWrapImage

GetWrapImageCount

IsOverflowPage

RemoveTextBlock

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