TCustomRichViewEdit.GetCurrentTextInfo

<< Click to display table of contents >>

TCustomRichViewEdit.GetCurrentTextInfo

Returns text and tag for text item at the position of caret

procedure GetCurrentTextInfo(out AText: TRVUnicodeString;

  out ATag: TRVTag);

GetCurrentTextInfo(...) is equivalent to TopLevelEditor.GetTextInfo(TopLevelEditor.CurItemNo, ...).

Use SetCurrentTag to change tag of item at the caret position, as an editing operations.

 

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

 

See also properties:

CurItemNo;

CurItemStyle.

See also:

Obtaining items;

Item types;

"Tags".