rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetPictureInfoEd

Top  Previous  Next

An editing-style method for changing properties of the ItemNo-th item of RichView, if this item is a picture or hot-picture.

procedure SetPictureInfoEd(ItemNo: Integer; const AName: String;

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

Parameters:

ItemNo – index of the item. The item must be of picture or hot-picture type (rvsPicture or rvsHotPicture), otherwise the method raises ERichViewError exception. Items are indexed from 0 to ItemCount-1, GetItemStyle returns type of item. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.SetPictureInfoEd (or use SetCurrentPictureInfo).

AName – name of the item, any string without line break (CR, LF) characters. It can also be set using SetItemTextEd 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 GetPictureInfo.

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 GetPictureInfo or GetItemTag for this item. The tag can also be set by SetItemTagEd method.

 

Method type: editstyle editing-style (unlike SetPictureInfo).

Additional item properties are assigned by the methods SetItemExtraIntPropertyEd and SetItemExtraStrPropertyEd.

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

When possible, use SetCurrentPictureInfo instead of this method.

 

See also methods of TCustomRichView:

GetPictureInfo;
GetItemStyle;
SetPictureInfo.

See also methods:

SetCurrentPictureInfo.

See also properties:

ItemCount.

See also:

Modifying RichView items;
Item types;
"Tags".


RichView © Sergey Tkachenko