|
TCustomRichViewEdit.SetCurrentItemText, SetCurrentItemTextA, SetCurrentItemTextW |
Top Previous Next |
|
Changes text of text item or a name of non-text item at the position of caret. procedure SetCurrentItemText(const s: String); procedure SetCurrentItemTextA(const s: TRVAnsiString); procedure SetCurrentItemTextW(const s: TRVUnicodeString); (Introduced in version 1.4, 1.7) ▪SetCurrentItemText(s) is equivalent to TopLevelEditor.SetItemTextEd(TopLevelEditor.CurItemNo, s). ▪SetCurrentItemTextA(s) is equivalent to TopLevelEditor.SetItemTextEdA(TopLevelEditor.CurItemNo, s). ▪SetCurrentItemTextW(s) is equivalent to TopLevelEditor.SetItemTextEdW(TopLevelEditor.CurItemNo, s).
Parameters: s – text assigned to the item. For text items, this is a visible text. For non-text item, this is a string value associated with the item (not displayed). S must not contain line break (CR and LF) characters. For text items, it must not contain CR, LF, TAB, FF characters (#13, #10, #9, #12).
SetCurrentItemTextA sets text from ANSI string: ▪If the item is a non-text item or a text item of ANSI style, the text is assigned as it is. ▪If the item is a Unicode text item, the function converts s to Unicode (conversion is based on Charset of the item style). SetCurrentItemTextW sets text from Unicode string: ▪If the item is a Unicode text item, the text is assigned as it is. ▪If the item is a non-text item or a text item of ANSI style, the function converts s to ANSI (conversion is based on Charset of the item style, or on RVStyle.DefCodePage for non-text items). SetCurrentItemText works like SetCurrentItemTextW in Delphi/C++Builder 2009 or newer, and like SetCurrentItemTextA in the older versions of Delphi/C++Builder.
Methods type:
See also methods: See also methods of TCustomRichView: See also properties: See also: ▪"Tags"; |