SetProp Method

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

Applies to

IWPTextObj

Declaration

procedure SetProp(ID: Integer; const Value: WideString);

Description

With ID<=0 custom string properties can be set in this object.

-ID is used as ID of the specific custom string. Please use adjacent numbers.

 

Example:

SetProp(0, "rel=nofollow") adds the parameter "nofollow" to hyperlink.

 

 

Alternatively these flags can be set:

id = 1 : Set the mode [wpobjDrawAsRect]

2 : Set the mode [wpobjDrawAsText]

3 : Set the mode [wpobjWithinEditable]

4 : Set the mode [wpobjWithinProtected]

5 : Set the mode [wpobjPositionAtRight]

6 : Set the mode [wpobjPositionAtCenter]

7 : Set the mode [wpobjPositionInMargin]

8 : Set the mode [wpobjLockedPos]

9 : Set the mode [wpobjDisableAutoSize]

10 : Set the mode [wpobjSizingDisabled]

11 : Set the mode [wpobjSizingAspectRatio]

12 : Set the mode [wpobjObjectUnderText]

13 : Set the mode [wpobjReadSourceFromEmbeddedText]

14 : Set the mode [wpobjUseForMailmerge]

To set the flag use the value "1", to clear it use the value "0".

32: Set the value of the internal property "CParam"

33: Set the value of the internal property "IParam" and expect an integer value

34: Set the value of the internal property "IParam" and expect a color value. (You can set the color of a horizontal line)

 


[idh_iwptextobj_setprop.htm]    Copyright © 2007 by WPCubed GmbH