peBullets - DfBaseRichEdit
Sets or returns bullets or numbering of selected paragraph or paragraphs
Type: Property
Access: Read/Write
Data Type: integer
Parameters: None
Syntax
Property integer peBullets
| Access Type | Syntax |
|---|---|
| Read Access: | Get peBullets to integerVariable |
| Write Access: | Set peBullets 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 has no effect if control is not paged.
To set the starting number or letter for paragraph numbering, use piBulletStart. To set the style of the bullet or number for paragraph numbering, use peBulletStyle.
Possible values are:
| Constant | Meaning |
|---|---|
| buNone | Apply no bullets or numbering |
| buBullets | Apply bullets |
| buArabicNumbers | Apply numbering with Arabic numbers |
| buLowerLetters | Apply numbering with lowercase letters |
| buUpperLetters | Apply numbering with uppercase letters |
| buLowerRomans | Apply numbering with lowercase Roman numerals |
| buUpperRomans | Apply numbering with uppercase Roman numerals |
Sample
This sample applies bullets to the paragraph or paragraphs of the currently selected text.
set peBullets to buBullets
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
Sample
This sample removes all bullets and numbering from the paragraph or paragraphs of the currently selected text.
set peBullets to buNone
| Col 1 | Col 2 |
|---|---|
| Note: | To use the buXXX constants in your code, you may have to include cRichEdit.pkg in your code (if it is not already included):Use cRichEdit.pkg |