TX Text Control ActiveX

TextFrameInsertAsChar Method

Method

This method inserts a new text frame, which is then handled as a single character in the text.

Introduced: 12.0.

Syntax

TXTextControl.TextFrameInsertAsChar TextPos, Width, Height

Parameters

ParameterDescription
TextPosSpecifies a text position where the text frame should be inserted. If TextPos is -1, the text frame is inserted at the current input position.
WidthSpecifies the width of the text frame in twips. If this parameter is set to zero, a built-in mouse interface is started which enables the end-user to define the size of the text frame through a rectangle, drawn with the mouse.
HeightSpecifies the height of the text frame in twips. If this parameter is set to zero, a built-in mouse interface is started which enables the end-user to define the size of the text frame through a rectangle, drawn with the mouse.

Return Value

The method returns the text frame's identifier, if a new text frame could be inserted. Otherwise, it returns zero. The text frame's identifier can also be obtained with the ObjectCurrent property.

Data Types

NameData type
TextPosLong
WidthInteger
HeightInteger
Return valueInteger

See Also