DefaultAttr

[Top]  [Chapter]  [Previous]  [Next]

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


[defaultattr.htm]    Copyright © 2007 by WPCubed GmbH