TE Edit Control Java / HTML-JavaScript Help
Product page

TerSetListBullet

Set the paragraph bullet/numbering property.

boolean TerSetListBullet(set, NumType, level, start, TextBef, TextAft, repaint)
boolean TerSetListBullet2(set, NumType, level, start, TextBef, TextAft, ListText, repaint)
boolean 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.
int NumTypeThis parameter allows you to apply a bullet or a numbered list. Please refer to the TerEditListLevel function for the list of available constants.
int start;The starting number when setting paragraph numbering. Set to 1 for default.
int level;list level (0 to 8). The default value for this parameter is 0.
String TextBef;Text before the paragraph number. Set to "" for default. This parameter is ignored when the ListText parameter is non-blank.
String TextAft;Text After the paragraph number. Set to "" for default. This parameter is ignored when the ListText parameter is non-blank.
String ListText;list-text for the bullet/number. Please refer to the TerEditListLevel function for the description of the parameter.
boolean repaint;Repaint the screen after this operation

Description:

The TerSetListBullet method is a wrapper to the basic list mechanism functions: TerEditList, TerEditListOr, TerEditListLevel and TerSetParaList. This method provides most used features of the basic list functions. However, you might like to use the basic list function if you need further control of the lists. Please refer to the ListNumbering chapter for a discussion on using the basic list functions.

Examples:

Create a decimal numbered list of level 0 where the numbering prints as:

(1), (2), (3), Etc

tej.TerSetListBullet2(true,tej.LIST_DEC,0,1,"","","(~1~)",true);

Create a decimal numbered list of level 0 where the numbering prints as:

1., 2., 3., Etc.

tej.TerSetListBullet2(true,tej.LIST_DEC,0,1,"","","~1~.",true);

Create a decimal numbered list of level 1 where the numbering prints as:

1.1, 1.2, 1.3, etc.

tej.TerSetListBullet2(true,tej.LIST_DEC,1,1,"","","~1~.~2~",true);

Create a standard bullet list of level 1 with round bullet:

tej.TerSetListBullet2(true,tej.LIST_BLT,1,1,"","","",true);

Create a square bullet list of level 1 :

tej.TerSetListBullet2(true,tej.LIST_BLT,1,1,"","",new string((char)61607,1),true);

// unicode 61607 shows square

Create a arrow bullet list of level 1:

tej.TerSetListBullet2(true,tej.LIST_BLT,1,1,"","",new string((char)61656,1),true);

// unicode 61656 shows arrow symbol

Examples of other unicode bullets:

unicode 61558 : 4-diamond shaped bullet

unicode 61692: Check mark bullet

You can also any character value between 33 and 255 in the Wingdings character set to display a bullet.

Return Value: This function returns TRUE when successful.