SetBProp Method

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

This method reads and writes internal property flags.

Declaration

int SetBProp([In] BPropSel Group, [In] int ID, [In] int Value);

Description

This method reads and writes a multitude of internal property flags.

 

The First parameter selects the group of flags, the second the flag and the third the new value.

 

If the third parameter "Value" is -1 the flag will be cleared,

if it is 1 it will be set,

if it is 0 only the current state (1 or 0) will be returned.

 

These groups are used:

Group 0 : wpVarBOptions

Group 1 : wpEditOptions

Group 2 : wpEditOptionsEx

Group 3 : wpProtectProp

Group 4 : wpClickableCodes

Group 5 : wpWriteObjectMode

Group 6 : wpViewOptions

Group 7 : wpAsWebPage

Group 8 : wpFormatOptions

Group 9 : wpFormatOptionsEx

Group 10 : wpAcceptFilesOptions

Group 11 : wpPrintOptions

Group 12 : wpClipboardOptions

Group 13 : Security Options.

Group 14 : Global Security Options

 

Note: Within .NET projects you can use the enum BPropSel to select the group, for example Memo.SetBProp(BPropSel.wpVarBOptions,1,1) to enable the "word wrap" mode.


[idh_iwpmemo_setbprop.htm]    Copyright © 2007 by WPCubed GmbH