Function TWPCustomRtfEdit.CodeSelectText(StartTag:TWPTextObj; IncludingTags:Boolean) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is Boolean.

Description

Selects the text within the give tag and the coresponding end tag. Optionally the tags can be also selected.
This code selects the hyperlink at the current position and assigns a large font: if WPRichText1.CodeSelectText(WPRichText1.HyperlinkAtCP) then WPRichText1.SelectedTextAttr.SetFontSize(22);