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

TerRestrictFont

Restrict the font size and styles.

bool TerRestrictFont(MinSize, MaxSize, RestrictStyles, UpdateToolbar)
int MinSize;The smallest point-size of the fonts to allow
int MaxSize;The largest point-size of the fonts to allow
int RestrictStyles;Use this parameter to specify the styles not to be allowed. The styles are specified by using the style bits. Please refer to the SetTerCharStylemethod for a list of the valid style bits.
bool UpdateToolbar;TRUE to update the tool-bar immediately to reflect the changes.

Return Value: This function returns TRUE when successful.