peBulletStyle - DfBaseRichEdit
Sets or returns numbering styles of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer peBulletStyle
| Access Type | Syntax |
|---|---|
| Read Access: | Get peBulletStyle to integerVariable |
| Write Access: | Set peBulletStyle to integerVariable/Value |
Description
If any part of a paragraph is selected, this property applies to the entire paragraph. If the cursor is in a paragraph, this property applies to the entire paragraph.
This property only affects paragraph numbering and has no effect on bullets.
This property has no effect if control is not paged.
Possible values are:
| Constant | Meaning |
|---|---|
| busRightParen | The paragraph number is followed by a closing (right) parenthesis |
| busEncloseParen | The paragraph number is enclosed in parentheses |
| busPeriod | The paragraph number is followed by a period (.) |
| busNumberOnly | The paragraph number is displayed with no surrounding or following characters |
| busNoDisplay | The paragraph number is applied, but not displayed |
To apply bullets or numbering to paragraphs, use peBullets. To set the style of the bullet or number for paragraph numbering, use peBulletStyle.
Sample
This sample changes the paragraph numbering style to display the paragraph number followed by a period.
set peBulletStyle to busPeriod
Sample
This sample applies numbering with lowercase Roman numerals to the selected paragraph or paragraphs, sets the starting number to 3 and sets the bullet style to enclose the number in parentheses..
set peBullets to buLowerRomans
set piBulletStart to 3
set peBulletStyle to busEncloseParen
| Col 1 | Col 2 |
|---|---|
| Note: | To use the busXXX constants in your code, you may have to include cRichEdit.pkg in your code (if it is not already included):Use cRichEdit.pkg |