AttrSet Method

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

Applies to

IWPAttrInterface

Declaration

procedure AttrSet(WPAT_Code: Integer; Value: Integer);

Description

Sets a certain property.

The property is selected by the WPAT code.

Note:  Internally the properties are stored in an array, not in specific variables. Only if a property is defined, an entry is added to this array. This does not only save resources, but it allows all properties to have an undefined state. This feature is important for a clean support of paragraph styles.

The three basic functions (AttrSet, AttrGet, AttrDel) will modify the character attributes for IDs <=16, for IDs >16 the current paragraph / selected paragraphs will be modified. You can use Memo.TextAttr.AttrSET((int)WPAT.IndentLeft, 360) to change the indent of the current paragraph or all selected paragraphs, in case text was selected. But usually You will use CurrPar.ParASet in the same way.


[idh_iwpattrinterface_attrset.htm]    Copyright © 2007 by WPCubed GmbH