| | MarginType | |
rtParagraphstyle Alignment Bullets FirstLineLeftMargin hasPageBreak Hide HideWhen As rtHideWhen isHidden InterLineSpacing keepTogether keepWithNext LeftMargin MarginType nsFont As rtFontstyle nsName nsUserName NumberedList propagateAll Pagination RightMargin SpacingAbove SpacingBelow Tabs As rtCollection useList
| version 1.5
Property Get/Set MarginType As Integer Margins may be defined either as percentage or offset (in twips). MarginType is a combination of values for different margins. Values available:s RT_PERCENT_LEFT, RT_PERCENT_RIGHT, RT_PERCENT_1STLEFT - relative margins RT_OFFSET_LEFT, RT_OFFSET_RIGHT, RT_OFFSET_1STLEFT - absolute (offset) margins
For example to define left margin relative and right margin absolute use: rtParagraphstyleObject.MarginType = RT_OFFSET_LEFT + RT_OFFSET_1STLEFT + RT_PERCENT_RIGHT
When you change margin type the values are not recalculated automatically - it is you task to set the value if you have changed the type. To be exact, each paragraph stores values for both type of margins, the MarginType simply defines which value is used. | |