WPParagraphLeader API

The WPParagraphLeader class defines the following API properties that get and set attributes of a paragraph leader, for example a bullet or number. The methods and properties are listed below in the following categories:

Leader style

Gets or sets the leader type: bullet, image, numeric or outline. [[PS: Are these the exact strings that are returned? Is case ignored? */
String  getLeaderType()
void  setLeaderType(String type)

Bullets

If the leader is a bullet, you can get or set the unicode character to be displayed: 0x25cf (disc), 0x25cb (circle), or 0x25a0 (square). [[PS: What shape is a disc?]]
char  getBulletChar()
void  setBulletChar(char bullet)

Numbers

If the leader is a number, you can get or set the numeric style: decimal, upper-roman, lower-roman, upper-alpha, or lower-alpha. [[PS: Are these the exact strings to be specified? Is case ignored?]]
String  getNumericType()
void  setNumericType(String type)

Images

If the leader is an image, you can get or set the URL of the image.
String  getImageName()
void  setImageName(String URL)

Text

If the leader is text, you can get or set the text. You can specify text in combination with a numeric leader, placing the text before, after, or both before and after the number. For example, you could have a leader that reads "Step 1" or "Step 1 (Optional)".
String  getTextBefore()
void  setTextBefore(String text)
String  getTextAfter()
void  setTextAfter(String text)

Spacing

The properties that get and set spacing for the paragraph leader apply to bullets, numbers, and images. [[PS: How is space measured? In what units?]]
/* Gets or sets the amount of space before the bullet/number/image. */
int  getSpaceBefore()
void  setSpaceBefore(int amt)
/* Gets or sets the amount of space after the bullet/number/image. */
int  getSpaceAfter()
void  setSpaceAfter(int amt)
/* Gets or sets the amount of total space to take up. Note that SpaceAfter is ignored if you set this property. */
[[PS: I don't understand what this property does.]]
int  getAbsoluteSpace()
void  setAbsoluteSpace(int amt)
See also
WordProcessor API Index
WordProcessor Object Model
WordProcessor Home Page