rvico TRichView Reference | Item Types

Bullets

Top  Previous  Next

"Bullet" is an image from TImageList. Bullets are useful if you want to create document where the same (small) image is used many times.

For example, they can be used for smiles in chats.

This item type has no relation to paragraph bullets and numbering.

Style of this item type: rvsBullet (-6)

For hypertext bullets, see hotspot item type.

Additional Properties

This item type has the following specific extra integer properties:

rvepSpacing spacing around the picture;

This item type has the following properties affecting vertical position:

VAlign;
extra properties: rvepVShift, rvepVShiftAbs.

Vertical Position

This item type has the following properties affecting vertical position:

extra integer properties: rvepVShift, rvepVShiftAbs.

Methods of TCustomRichView

The following viewer-style methods add item of this type to the end of the document:

AddBulletEx, AddBulletExTag

The following viewer-style method changes the main properties of item of this type:

SetBulletInfo

The following method returns main properties of the given item of this type:

GetBulletInfo

Methods of TCustomRichViewEdit

The following editor-style method inserts item of this type at the position of caret:

InsertBullet

The following editor-style methods modify main properties of the item of this type:

SetCurrentBulletInfo,
SetBulletInfoEd

The following method returns main properties of the item of this type at the position of caret:

GetCurrentBulletInfo

Memory Usage

RichView does not own this image-list, and it will not destroy it when clearing document.

Saving and Loading

RVF

ImageLists themselves are not saved in RVF. RichView stores TImageList.Tag. When loading, OnRVFImageListNeeded occurs allowing you to provide image-lists for bullets and hotspots.

Export to RTF and HTML

Bullets are exported as pictures. If you want to write special code for exporting bullets in HTML, use OnHTMLSaveImage event.


RichView © Sergey Tkachenko