ContinueOptions Method

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

Applies to

IWPFieldContents

Declaration

void ContinueOptions(int OptionBits);

Description

This method is used to add flags which change the way the inserted text (or the insertion itself) is performed for this field.

 

You can use the following bit values:

1: The paragraph attributes of the inserted text will be overridden with the attributes of the paragraph the field is located within.

2: The character attributes of the inserted text will be overridden with the character attributes of the field object.

4: Do not load font information from the inserted RTF text.

8: Do not load font size information from the inserted RTF text.

16: Do not load font style information (bold, italic, underline) from the inserted RTF text.

32: Do not load tabs - use current tabs.

64: Do not load paragraph styles - use current style.

 

Usually the loaded text will use the current paragraph attributes for its first paragraph.

 

The following bits change this behaviour:

128: Overwrite current paragraph attributes with attributes from first loaded paragraph.

256: If merge field is at start of paragraph overwrite current paragraph attributes with attributes from the first new paragraph.

 

This bits refine the copying of the properties:

512: Also use the borders of loaded text (overwrites table cell borders)

1024: Do not use the loaded tab positions

2048: Do not use the loaded paragraph style

 

When inserting text the fields (start/end marker) stay intact.

Only if this bit is set, the field will be deleted:

4096: Delete This Field

 

 

 

Note

This method will add flags but will not remove flags which have been set before. The flags are only used for the current field and then set to 0.

Category

Mailmerge


[idh_iwpfieldcontents_continueoptions.htm]    Copyright © 2007 by WPCubed GmbH