Navigation:  Technical API Reference > General Interfaces and types > IWPMemo / IWPEditor > Methods > TextCommandStr >

Command ID 18 - Set default font and size

Previous pageReturn to chapter overviewNext page

This command sets the default font name and size. It only needs to be called once.

 

The font will be applied the next time the editor is cleared.

 

To disable the default font pass -1 as integer parameter.

 

Example VB:

 

Private Sub Command4_Click()

  WPDLLInt1.Memo.TextCommandStr 18, 22, "Courier New"

End Sub