ChangeShapeText

Top  Previous  Next

 

ChangeShapeText (Method)

 

Changes the text of a ShapeText object with a specific handle and returns a new handle

 

Syntax:

Function ChangeShapeText(hTextShape As Integer, sNewText As String, sFontName As String, fBold As Boolean, fItalic As Boolean, fUnderline As Boolean, fStrikeOut As Boolean, lCharSet As Integer) As Integer

 

The ChangeShapeText method syntax consists of the following:

Parameter

Data Type

Description

hTextShape

Integer

Is the handle of the ShapeText

sNewText

String

Is the new text

sFontName

String

Is the font name of the new text

fBold

Boolean

A Boolean expression that if it is True then the new text is bold

fItalic

Boolean

A Boolean expression that if it is True then the new text is italic

fUnderline

Boolean

A Boolean expression that if it is True then the new text is underlined

fStrikeOut

Boolean

A Boolean expression that if it is True then the new text is strikethrough

lCharSet

Integer

Is the character set number of the new text

 

Return value:

Integer - An Avax handle on success, zero on error.

 

Example