rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetCurrentPictureInfo

Top  Previous  Next

Modifies the item at the position of caret, if this item is a picture or hot-picture.

procedure SetCurrentPictureInfo(const AName: String;

  Agr: TGraphic; AVAlign: TRVVAlign; ATag: Integer);

SetCurrentPictureInfo(...) is equivalent to TopLevelEditor.SetPictureInfoEd(TopLevelEditor.CurItemNo, ...).

This method can be used if CurItemStyle returns rvsPicture.

Parameters:

AName – name of the item, any string without line break (CR, LF) characters. It can also be set using SetCurrentItemText method.

Agr – graphic object. It must be an unique graphic object (you cannot assign the same graphic object to two or more items) or value returned by GetCurrentPictureInfo.

AVAlign – vertical alignment of the picture.

ATag tag of the item.If tags are pointers to dynamically allocated strings (rvoTagsArePChars in Options), this parameter must be set to value returned by StrNew of StrAlloc functions, typecasted to integer. You can use value returned by GetCurrentPictureInfo or GetCurrentTag for this item. The tag can also be set by SetCurrentTag method.

 

Method type: editstyle editing-style.

Additional item properties are assigned by the methods SetCurrentItemExtraIntProperty and SetCurrentItemExtraStrProperty.

unicode Unicode note: names of non-text items are ANSI strings.

 

See also methods:

GetCurrentPictureInfo;
SetPictureInfoEd;
SetCurrentItemExtraIntProperty.

See also properties:

CurItemNo;
CurItemStyle.

See also:

Modifying RichView items;
Item types;
"Tags".


RichView © Sergey Tkachenko