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

SetTerPointSize

Set font pointsize for the text

bool SetTerPointSize( pointsize, repaint)
int pointsize;size of the new font in points (72 points = 1 inch). You can specify the font size in twips unit by using a negative value (1 point equal 20 twips).
bool repaint;true to refresh the window after this operation

Description: This function is used to apply the new font size to the text. If a text block is highlighted, this operation is applicable to all characters in the block. Otherwise only the current character is affected.

Return Value: This function returns true if successful.

Example:

         // select the first 40 characters of the first line.
         SelectTerText(0,0,0,40,false);  
         // Set the point size of 14 to the selected text
         SetTerPointSize(14,true);  
         // Set the font size to 280 twips (14 points).
         SetTerPointSize(-280,true);