SelText Property

[Top]  [Chapter]  [Previous]  [Next]


string SelText;


The property can be used to read the currently selected text as string. It does not save any special characters (such as object anchors) or formatting information. It works a lot faster than SaveToString since it does not have to use the text writer classes. You can also assign a value to this property to insert a string.

SelText can be used within the event OnCompleteWord to implement text macros.


Note: To insert RTF or HTML formatted strings instead of SelText use LoadFromString.


Also see

Memo.TextCommandStr ID 35/36/37 to change and read paragraphs, lines and words at cursor position.

[idh_iwpmemo_seltext.htm]    Copyright © 2007 by WPCubed GmbH