TerSetBulletEx
Set the paragraph bullet/numbering property.
bool TerSetBulletEx( set, IsBullet, start, level, type, repaint)
bool TerSetBullet2( set, IsBullet, start, level, type, TextBef, TextAft, repaint)
bool TerSetBullet3( set, IsBullet, start, level, type, TextBef, TextAft, repaint, flags)
bool set; | true to set the paragraph bullet/numbering or false to remove it. The 'start', 'level', and 'type' parameters are ignored when the 'set' parameter is false. |
bool IsBullet; | true to set the paragraph bullet or false to set paragraph numbering. |
int start; | The starting number when setting paragraph numbering. Set to 1 for default. |
int level; | The level number when setting paragraph numbering. Set to 0 for default. |
int type; | The parameter indicates the symbol used for bullets or the letters used for paragraph numbering. When the 'IsBullet' parameter is set to true, use one of the following constants for the 'type' parameter: BLT_ROUND: Round bullet BLT_DIAMOND: Diamond bullet BLT_SQUARE: Square bullet BLT_HOLLOW_SQUARE:Hollow square bullet BLT_4_DIAMONDS: Four diamonds symbol BLT_ARROW: Arrow bullet BLT_CHECK: Check bullet When the 'IsBullet' parameter is set to false, use on of the following constants for the 'type' parameter: NBR_DEC: Decimal number NBR_UPR_ALPHA Uppercase Alphabetic number NBR_LWR_ALPHA Lowercase Alphabetic number NBR_UPR_ROMAN Uppercase Roman number NBR_LWR_ROMAN Lowercase Roman number |
string TextBef; | Text before the paragraph number (limited to 10 bytes). Set to null for default. |
string TextAft; | Text After the paragraph number (limited to one byte). Set to null for default. |
int flags; | Set this argument to BLTFLAG_HIDDEN to create a continuing list item. Set to 0 to create regular list item |
bool repaint; | Repaint the screen after this operation |
Comment: This method uses the older method of applying bullet and numbering. You can use the TerSetListBullet function to use the newer list mechanism to apply bullets and numbers. The new function has a better support for nested lists and multiple lists within a document.
Return Value: This function returns true when successful.