Paragraph Attributes

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

 // Margins

 WPAT_IndentLeft = 17 - the left indent in twips

 WPAT_IndentRight = 18; - the right indent in twips

 WPAT_IndentFirst = 19; - the first indent in twips (can be negative, too)

 WPAT_SpaceBefore = 20 - the space before a paragraph

 WPAT_SpaceAfter = 21; - the space after a paragraph

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

 WPAT_SpaceBetween = 23; - the space between paragraphs. When negative : Absolute, When Positive minimum

 

 // padding, only in tables:

 WPAT_PaddingLeft = 24 - Distance from Border to Text in twips (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_Alignment = 29 - horizontal alignment: 0=left, 1=center, 2=right, 3=justified

 WPAT_VertAlignment = 30 - vertical alignment: 0=top, 1=center, 2=bottom

 

// Colors and background

 WPAT_BGColor = 50; // Background Color - (as index value)  - see Convert Utility

 WPAT_FGColor = 51; // Foreground Shading Color -  - see Convert Utility

 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; // Mark as outline (used by PDF Export to create "Bookmarks" and for TOC). The value is the level. 0 = not marked. You can use Memo.TextCommand(7) to set this flag according to the used style names. (Use TextCommand(3) to create a TOC.)

 

 

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

 


[paragraphattributes.htm]    Copyright © 2007 by WPCubed GmbH