Navigation:  Interfaces (Technical API Reference) > General: WPDllInt + IWPMemo/IWPEditor > IWPMemo / IWPEditor > Methods > TextCommandStr >

Command ID 9 - insert HTML markup

Previous pageReturn to chapter overviewNext page

This command inserts HTML open and closing markup.

 

 Memo.TextCommandStr(9, 0, "b") creates <b>|</b>.

 

If text is currently selected the tags will be created around the selected text, if no text is selected the cursor | will be placed within the tags.

 

You can also specify parameters:

 

  Memo.TextCommandStr(9, 0, "span style=\"font-face:Arial\"") creates <span style="font-face:Arial">|</span>.