company logo

ControlContext :: removeText - Remove text from current position

The function removes the text at the current position (usually the cursor position). The size of the text to be removed refers to the number of characters to be removed. This may include additional HTML tags in case of rich text data.

The position for the text to be removed can be set in the textPosition() property.

{ // fragment

  ...

  textPosition(pos);

  removeText(data);

  ...

}

Implementation details

ControlContext  :: removeText ( int32 iLength )
  • iLength - String length