CurrStyleAttr Property

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

Declaration

IWPAttrInterface CurrStyleAttr;

Description

This interface is used to change the character attributes defined by the current style. Also see CurrStyle and SelectStyle.

 

VB.NET example:

 

Memo.CurrStyleAttr.SetFontface("Courier New")

Memo.CurrStyleAttr.SetFontSize("12")

 

Notes:

You need to execute ReformatAll(true, true) after you have changed a style.
The character attributes defined by a style will be only used by text which does not override these attributes. When you insert new text you can clear all writing attributes using Memo.CurrAttr.Clear().

 

 


[idh_iwpmemo_currstyleattr.htm]    Copyright © 2007 by WPCubed GmbH