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

TerHideToolbarIcon

Hide or redisplay a toolbar icon.

bool TerHideToolbarIcon(id, hide)
int id;The id of the icon to hide. Please refer to TerEditTooltip function for a list of toolbar icon ids.
bool hide;Set to true to hide the icon, or set to false to redisplay a previously hidden icon.

Description: Please note that the changes made by this function are not displayed on an 'existing' TE control window until the toolbar is recreated using the TerRecreateToolbar function. You would typically call this function multiple times to hide more than one icons and then call the TerReceateToolbar function once to redisplay the modified toolbar. When a new control is created, it would automatically hide the icons flagged by this function.

Return Value: This function returns a true value if successful.