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

DefaultAttr

Previous pageReturn to chapter overviewNext page

Declaration

IWPAttrInterface DefaultAttr;

Description

This is the interface to the default attribute of the active editor. The default attribute is used for text which does not have an attribute - this is the case for text with the CharAttrIndex 0.

   IWPMemo Memo = wpdllInt1.Memo;

   Memo.CurrPar.ClearCharAttr();

   Memo.DefaultAttr.SetFontface("Courier New");

 

 

To define a font + size which is used for each new documents please use 

Command ID 18 - Set default font and size