|
Columns |
Top Previous Next |
|
WPTools 5 "Premium" supports columns.
Please note that "text balancing" is not supported.
This code starts a 2 column layout at the current paragraph with 0.5 cm margin inbetween.
WPRichText1.ActiveParagraph.ASet(WPAT_COLUMNS, 2); WPRichText1.ActiveParagraph.ASet(WPAT_COLUMNS_X, WPCentimeterToTwips(0.5)); WPRichText1.Refresh;
This code will ceate 3 columns
WPRichText1.ActiveParagraph.ASet(WPAT_COLUMNS, 3); WPRichText1.ActiveParagraph.ASet(WPAT_COLUMNS_X, WPCentimeterToTwips(0.5)); WPRichText1.Refresh;
With this code a column break is inserted so this paragraph will be moved to next column or page. The user will need this functionality if a column should not be extended to the end of the page.
include(WPRichText1.ActiveParagraph.prop, paprNewColumn); WPRichText1.Refresh;
To switch of column layout use
WPRichText1.ActiveParagraph.ASet(WPAT_COLUMNS, 1); WPRichText1.ActiveParagraph.ADel(WPAT_COLUMNS_X); WPRichText1.Refresh;
Column properties are loaded and saved in WPT and RTF format.
|