This method inserts a new image which is then handled like a single character in the text.
Introduced: 12.0.
TXTextControl.ImageInsertAsChar FileName, TextPos, ScaleX, ScaleY
| Parameter | Description | |
| FileName |
Specifies the image file with a full path name. |
|
| TextPos |
Specifies a text position where the image should be inserted. If TextPos is -1, the image is inserted at the current input position. |
|
| ScaleX |
Specifies a horizontal scaling factor as a percentage. |
|
| ScaleY |
Specifies a vertical scaling factor as a percentage. |
The method returns the image's identifier, if a new image could be inserted. Otherwise, it returns zero. The image's identifier can also be obtained with the ObjectCurrent property.
| FileName: | String |
| TextPos: | Long |
| ScaleX: | Integer |
| ScaleY: | Integer |
| Return value: | Integer |
<< TXTextControl.ImageInsert Method | >> TXTextControl.ImageInsertFixed Method