rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.GetCurrentPictureInfo

Top  Previous  Next

Returns main properties for the item of picture/hot-picture type at the position of caret.

procedure GetCurrentPictureInfo(var AName: TRVAnsiStringvar Agr: TGraphic;

  var AVAlign: TRVVAlignvar ATag: TRVTag);

GetCurrentPictureInfo(...) is equivalent to TopLevelEditor.GetPictureInfo(TopLevelEditor.CurItemNo, ...).

Output parameters:

AName – name of the item. It can also be read using GetCurrentItemText method.

Agr – graphic object. This method returns object owned by RichViewEdit, do not not destroy it.

AVAlign – vertical alignment of the picture.

ATag tag of the item. Use SetCurrentTag or SetCurrentPictureInfo to change tag of item as an editing operation. This value can also be read using GetCurrentTag method.

 

This method must be called only when the document is formatted.

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

Additional properties of item at the position of caret are returned by the methods GetCurrentItemExtraIntProperty and GetCurrentItemExtraStrProperty.

 

See also methods:

SetCurrentPictureInfo  (changes properties of picture at the position of caret, as an editing operation);

GetPictureInfo (returns properties of the specified picture).

See also properties:

CurItemNo;

CurItemStyle.

See also:

Obtaining RichView items;

Item types;

"Tags".


TRichView © trichview.com