TE Edit Control Java / HTML-JavaScript Help
Product page

TerEnableTracking

Enable tracking of document modification.

boolean TerEnableTracking(enable, name, UseDefaultClrStyle, InsStyle, InsColor, DelStyle, DelColor)
boolean enable;Set to TRUE to enable tracking. Set to false to disable tracking.
String name;The reviewer name. Set to "" to assume currently logged user name.
boolean UseDefaultClrStyle;Use the default value for color and style for the deleted and inserted text. When this parameter is set to TRUE, the following color and style parameters are ignored.
int InsStyle;

The style to apply to the newly inserted text. Please refer to the SetTerCharStyle function for the list of available character style.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

Color InsColor;

or,

String InsColor;

The color to apply to the newly inserted text.

The color value can be passed as a Color object, or an HTML color string such as red, "#ff0000".

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

int DelStyle;

The style to apply to the deleted text. Please refer to the SetTerCharStyle function for the list of available character style.

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

Color DelColor;

or,

String DelColor;

The color to apply to the deleted text.

The color value can be passed as a Color object, or an HTML color string such as red, "#ff0000".

This parameter is ignored if the UseDefaultClrStyle parameter is set to TRUE.

Comment: The ID_TRACK_CHANGES id can also be used with the TerCommand method or the Command property to enable/disable tracking of modification.

Return Value: This function returns TRUE when successful.