|
TRVListLevel.FormatString |
Top Previous Next |
|
Defines format for text list markers. property FormatString: String; This property is used for the following list types:
For rvlstBullet list type, it completely defines a text to display. For rvlstDecimal..rvlstUpperRoman, it defines how to display numbers. The actual string = Format(FormatString, [CL0, CL1, ..., CLN]) where
Example1: FormatString = '*' // no numbering * aaaaa * aaaaa * aaaaa Example2: For 0-th level: FormatString = '%s.', ListType=rvlstDecimal For 1-th level: FormatString = '%s.%s.', ListType=rvlstDecimal 1. aaaaa 2. aaaaa 2.1. aaaaa 2.2. aaaaa 3. aaaaa The same result will be with '%0:s.' and '%0:s.%1:s.' Example3: For 0-th level: FormatString = 'Chapter %s.', ListType=rvlstDecimal For 1-th level: FormatString = '%1:s)', ListType=rvlstLowerAlpha Chapter 1. aaaaa Chapter 2. aaaaa a) aaaaa b) aaaaa Chapter 3. aaaaa The same result will be with 'Chapter %0:s.' and '%1:s)' Default value: · (#$B7) See also properties: |