CurrParAttr Property

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

Declaration

IWPAttrInterface CurrParAttr;

Description

This is the interface to manipulate the text attributes of the text in the current paragraph (the paragraph the cursor is located within).

 

You can use this interface to change the font of all characters in the paragraph. If you only need to change the attribute of certain characters in the paragraph use either CharAttr or SetCharAttr.

 

Example: The current paragraph should be bold and use the font "Verdana" with 10 pt.

IWPAttrInterface parattr = Memo.CurrParAttr;

parattr.IncludeStyles(1);

parattr.SetFontface("Verdana");

parattr.SetFontSize(10);

 

Do not use this interface to modify the attributes of the paragraph itself, such as the indent or also the default font for a paragraph.


[idh_iwpmemo_currparattr.htm]    Copyright © 2007 by WPCubed GmbH