RTextView.InsertStyledText


public function InsertStyledText

Prototype:

public function InsertStyledText(position, text, szStylename);

Parameters

position
the position where the text is inserted (a number starting from 0)
text
the text to insert in the view
szStylename
a string naming the style. The style is the one created by the CreateStyle function.

Description:

Inserts text to a text view at the given position, linked to a style. The szStylename is a string that is linked to a RTextTag object customizing the text that will be inserted (color, font, etc). This function is similar to the InsertText function, and if the "szStylename" parameter is a non-defined style, its behavior is identical to InsertText.

Return value:

This function returns null.