Class TWPMMInsertTextContents

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TComponent | TWPMMInsertTextContents

Description

The TWPMMInsertTextContents is used as a parameter 'Contents' in the event OnMailMergeGetText. You can replace a string by simply assign a string to StringValue.
To Modify the attribute of the inserted text change the property 'MergeAttr'. You can modify the paragraph the start of the field is located. This paragraph is accessible through MergePar.
Upgrade Note: The parameter 'c' is not supported anymore. But please note that you can use the common programing interface to insert text and objects. Note: When the event is called the the whole field is selected.

Properties

Methods

Events

BeforeInsertText : TWPMMBeforeInsertTextEvent= TWPMMBeforeInsertTextEvent

When loading text this event can be used to modify the RTFDataBlock before the contents is inserted into the desination. This makes it very easy to add additional text befvore or after the text ro adjust properties such as indents or style names

Used or referenced by

-Function glWPProcessField(Sender:TWPRTFDataBlock; PostProcess:Boolean; Contents:TWPMMInsertTextContents; Cursor:TWPRTFDataCursor) : Boolean