TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetUserField

Set the text for the user field at the current cursor position.

BOOL TerSetUserField(text)
LPBYTE text;The text for the user field.

Description: The editor fires an event called SetUserField when it encounters a user-field in the document as the page is being rendered. Your application can specify the content of the user field by using the TerSetUserField function within this event.

The text length of the user field should not exceed one text line. When the user-field is placed in a header/footer area, the text length of the field should not change from one call to another.

Return Value: This function returns true when successful.