Function TWPCustomTextWriter.WriteAttribute(Selection:TWPTextWriterModes; TextAttribute:TWPTextStyle; WriteAttribute:TWPTextStyle) : Boolean
Unit: WPRTEDefs
Class: WPRTEDefs.TWPCustomTextWriter
Parameters
-
Selection:TWPTextWriterModes TextAttribute:TWPTextStyle WriteAttribute:TWPTextStyle
Returns
The type of the result value is Boolean.
Description
Some writing formats require the saving of surrounding attribute parentheses. These are written in this order: pagedefs,columns,keepn/outline/numbering/border/tabs/alignment and indent.This also allows the inheritance of this attributes to keep the file smaller. Please note that if the properties are not written they still can be written after WriteParagraphStart. If they are written the WriteAttribute element has to be updated in WriteAttribute(). WriteAttribute will only be called for properties listed in variable WriterModes