TCustomRichViewEdit.SetCurrentPictureInfo

<< Click to display table of contents >>

TCustomRichViewEdit.SetCurrentPictureInfo

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

procedure SetCurrentPictureInfo(const AName: TRVUnicodeString;

  Agr: TRVGraphic; AVAlign: TRVVAlignconst ATag: TRVTag);

(changed in version 18)

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 SetCurrentItemTextW method.

Agr graphic object. If this item does not use a shared image (by default), Agr must be an unique graphic object (you cannot assign the same graphic object to two or more items) or the value returned by GetCurrentPictureInfo (the image is shared if rvepShared extra item property is nonzero). If this item does not use a shared image, and Agr is not equal to the value returned by GetCurrentPictureInfo, the previously used graphic object is freed.

AVAlign vertical alignment of the picture.

ATag tag of the item. 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.

 

See also methods:

GetCurrentPictureInfo;

SetPictureInfoEd;

SetCurrentItemExtraIntProperty.

See also properties:

CurItemNo;

CurItemStyle.

See also:

Modifying RichView items;

Item types;

"Tags".