Paragraph Attributes

<< Click to Display Table of Contents >>

Navigation:  Appendix > WPAT_codes >

Paragraph Attributes

 // Margins

 WPAT_IndentLeft = 17; // Indent Left  (CSS = margin)

 WPAT_IndentRight = 18; // Indent Right (CSS = margin)

 WPAT_IndentFirst = 19; // Indent First (CSS = text-indent)

 WPAT_SpaceBefore = 20; // Space Before (CSS = margin)

 WPAT_SpaceAfter = 21; // Space After  (CSS = margin)

 WPAT_LineHeight = 22; // LineHeight in in % ( Has priority over WPAT_SpaceBetween)

 WPAT_SpaceBetween = 23; // Space Between  (CSS = margin)  - negative : Absolute, Positive minimum

 

 // padding, only in tables:

 WPAT_PaddingLeft = 24; // Distance from Border to Text (CSS = padding) tscellpaddt / trpaddl

 WPAT_PaddingRight = 25; // Distance from Border to Text (CSS = padding)

 WPAT_PaddingTop = 26; // Distance from Border to Text (CSS = padding)

 WPAT_PaddingBottom = 27; // Distance from Border to Text (CSS = padding)

 

 // Alignment

 WPAT_WordSpacing = 28; // Value = 0 for default or % of EM (ignored for justifed text)

 WPAT_Alignment = 29; // paralLeft, ...

 WPAT_VertAlignment = 30; // Cells: paralVertTop, paralVertCenter, paralVertBottom

 

// Colors and background

 WPAT_BGColor = 50; // Background Color

 WPAT_FGColor = 51; // Foreground Shading Color

Note: The RTF reader always creates BG and FG so you need to use ADel( WPAT_BGColor )  and ADel( WPAT_FGColor ) to remove both settings from a paragraph or style.

 

 WPAT_ShadingValue = 52; // Background Shading Percentage in %

 WPAT_ShadingType = 53; // Background Shading Type

 VALUE: WPSHAD_solidbg = 0; // Solid Background - use WPAT_BGColor  and WPAT_ShadingValue

 VALUE: WPSHAD_solidfg = 1; // Solid Background - use WPAT_FGColor  and WPAT_ShadingValue

 VALUE: WPSHAD_clear = 2; // Clear Background

 VALUE: WPSHAD_bdiag = 3; // Backward diagonal pattern.

 VALUE: WPSHAD_cross = 4; // Cross pattern.

 VALUE: WPSHAD_dcross = 5; // Diagonal cross pattern.

 VALUE: WPSHAD_dkbdiag = 6; // Dark backward diagonal pattern.

 VALUE: WPSHAD_dkcross = 7; // Dark cross pattern.

 VALUE: WPSHAD_dkdcross = 8; // Dark diagonal cross pattern.

 VALUE: WPSHAD_dkfdiag = 9; // Dark forward diagonal pattern.

 VALUE: WPSHAD_dkhor = 10; // Dark horizontal pattern.

 VALUE: WPSHAD_dkvert = 11; // Dark vertical pattern.

 VALUE: WPSHAD_fdiag = 12; // Forward diagonal pattern.

 VALUE: WPSHAD_horiz = 13; // Horizontal pattern.

 VALUE: WPSHAD_vert = 14; // Vertical pattern.

 WPAT_BGBitMap = 54; // Background Image.

 WPAT_BGBitMapMode = 55; // Bitfield for scroll, center, center, repeat

 

Special Flags:

 WPAT_ParProtected = 92; // 1=protect, 0=not protected

 WPAT_ParKeep = 93; // 1=no page break

 WPAT_ParKeepN = 94; // 1=keep paragraphs together

 WPAT_ParIsOutline = 160; // Is Outline (used by PDF Export and for TOC) - value = level!

 

 

NOTE: gray symbols are reserved for future versions of WPTools!